Skip to content

Commit 0f9555d

Browse files
committed
debuging github actions
1 parent 2e7b362 commit 0f9555d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy-server.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,5 @@ jobs:
124124
run: |
125125
ansible-playbook -i ./infra/backend/ansible/inventory.ini ./infra/backend/ansible/redeploy.yml \
126126
--extra-vars "@infra/backend/ansible/group_vars/server-redeploy.yml" \
127-
-e "fastapi_image=${{ env.REGISTRY }}/${{ env.IMAGE_NAME_API }}:${{ github.sha }}" \
128-
-e "celery_image=${{ env.REGISTRY }}/${{ env.IMAGE_NAME_CELERY }}:${{ github.sha }}"
127+
-e "fastapi_image=${{ env.REGISTRY }}/$(echo ${{ env.IMAGE_NAME_API }}:${{ github.ref_name }}-${{ github.sha::7 }} | tr '[:upper:]' '[:lower:]'):${{ github.sha }}" \
128+
-e "celery_image=${{ env.REGISTRY }}/$(echo ${{ env.IMAGE_NAME_CELERY }}:${{ github.ref_name }}-${{ github.sha::7 }} | tr '[:upper:]' '[:lower:]'):${{ github.sha }}"

0 commit comments

Comments
 (0)