Skip to content

Commit

Permalink
fix tags push action (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenarciso4 committed Feb 20, 2024
1 parent c95b2b1 commit afbebb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/public-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
tags:
- v*
- 'v*'

permissions:
id-token: write
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
docker push public.ecr.aws/y9x3p3i6/ecs-deploy:latest
docker push in4it/ecs-deploy:latest
- name: Tag and push specific version
if: startsWith(github.ref, '/refs/tags/*')
if: startsWith(github.ref, 'refs/tags/')
run: |
docker tag ecs-deploy:latest public.ecr.aws/y9x3p3i6/ecs-deploy:${GITHUB_REF/refs\/tags\//}
docker tag ecs-deploy:latest in4it/ecs-deploy:${GITHUB_REF/refs\/tags\//}
Expand Down

0 comments on commit afbebb8

Please sign in to comment.