Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit fdb0287

Browse files
committed
ci: nomalize git tag to use as docker tag in deploy
1 parent d63a78f commit fdb0287

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/tag-n-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,15 @@ jobs:
108108
cache: poetry
109109
- name: Install deploy dependencies
110110
run: poetry install --only=deploy-aws
111+
- name: Normalize git tag
112+
id: normalize-tag
113+
env:
114+
GIT_TAG: ${{ needs.tag.outputs.tag }}
115+
run: echo "docker-tag=$(echo ${GIT_TAG} | sed s/+/-/)" >> "$GITHUB_OUTPUT"
111116
- name: Run CDK deploy
112117
uses: ./.github/actions/cdk-deploy
113118
with:
114119
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
115120
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
116121
AWS_ECR_REPOSITORY_ARN: arn:aws:ecr:${{ vars.AWS_REGION }}:${{ vars.AWS_ACCOUNT_ID}}:repository/stapi-spec/stapi-fastapi
117-
IMAGE_TAG_OR_DIGEST: ${{ needs.tag.outputs.tag }}
122+
IMAGE_TAG_OR_DIGEST: ${{ steps.normalize-tag.outputs.docker-tag }}

0 commit comments

Comments
 (0)