0
Fork 0
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:
Gao Sun 2023-03-18 02:45:32 +08:00
parent d27499c553
commit bc7fbddab1
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -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: