Skip to content

Commit

Permalink
ci: nomalize git tag to use as docker tag in deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
c-wygoda committed May 9, 2024
1 parent d63a78f commit fdb0287
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tag-n-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,15 @@ jobs:
cache: poetry
- name: Install deploy dependencies
run: poetry install --only=deploy-aws
- name: Normalize git tag
id: normalize-tag
env:
GIT_TAG: ${{ needs.tag.outputs.tag }}
run: echo "docker-tag=$(echo ${GIT_TAG} | sed s/+/-/)" >> "$GITHUB_OUTPUT"
- name: Run CDK deploy
uses: ./.github/actions/cdk-deploy
with:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
AWS_ECR_REPOSITORY_ARN: arn:aws:ecr:${{ vars.AWS_REGION }}:${{ vars.AWS_ACCOUNT_ID}}:repository/stapi-spec/stapi-fastapi
IMAGE_TAG_OR_DIGEST: ${{ needs.tag.outputs.tag }}
IMAGE_TAG_OR_DIGEST: ${{ steps.normalize-tag.outputs.docker-tag }}

0 comments on commit fdb0287

Please sign in to comment.