mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
ci: use short sha for deployment
This commit is contained in:
parent
d27499c553
commit
bc7fbddab1
1 changed files with 6 additions and 2 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -144,6 +144,10 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set short sha
|
||||
id: sha
|
||||
run: echo "short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Setup Node and pnpm
|
||||
if: ${{ (inputs.target || 'dev') == 'dev' }}
|
||||
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
||||
|
@ -172,13 +176,13 @@ jobs:
|
|||
uses: azure/webapps-deploy@v2
|
||||
with:
|
||||
app-name: ${{ vars.APP_NAME_CORE }}
|
||||
images: ghcr.io/logto-io/logto:sha-${{ github.sha }}
|
||||
images: ghcr.io/logto-io/logto:sha-${{ steps.sha.outputs.short }}
|
||||
|
||||
- name: Deploy cloud to containerapp
|
||||
uses: azure/webapps-deploy@v2
|
||||
with:
|
||||
app-name: ${{ vars.APP_NAME_CLOUD }}
|
||||
images: ghcr.io/logto-io/cloud:sha-${{ github.sha }}
|
||||
images: ghcr.io/logto-io/cloud:sha-${{ steps.sha.outputs.short }}
|
||||
|
||||
# Publish packages and create git tags if needed
|
||||
publish-and-tag:
|
||||
|
|
Loading…
Reference in a new issue