From afbebb81d73c9c1535bbcbc2d45885ecc71795ec Mon Sep 17 00:00:00 2001 From: Andre Narciso <37899965+andrenarciso4@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:18:55 +0000 Subject: [PATCH] fix tags push action (#112) --- .github/workflows/public-ecr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/public-ecr.yml b/.github/workflows/public-ecr.yml index 4019c36..7687bff 100644 --- a/.github/workflows/public-ecr.yml +++ b/.github/workflows/public-ecr.yml @@ -5,7 +5,7 @@ on: branches: - master tags: - - v* + - 'v*' permissions: id-token: write @@ -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\//}