author | Alberto Bertogli
<albertito@blitiri.com.ar> 2024-04-21 10:55:49 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2024-04-21 11:05:26 UTC |
parent | 4fbd6fc94af3be951cd7515eea7a6ac815df4579 |
.github/workflows/docker.yml | +2 | -2 |
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9b12e51..bf8c3c5 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -77,7 +77,7 @@ jobs: docker tag chasquid index.docker.io/${{ secrets.DOCKER_REGISTRY_USER }}/chasquid:$GITHUB_REF_NAME docker push index.docker.io/${{ secrets.DOCKER_REGISTRY_USER }}/chasquid:$GITHUB_REF_NAME - name: Dockerhub tag latest - if: env.HAS_DOCKER && env.GITHUB_REF_NAME == 'main' + if: env.HAS_DOCKER && github.ref_name == 'main' run: | docker tag chasquid index.docker.io/${{ secrets.DOCKER_REGISTRY_USER }}/chasquid:latest docker push index.docker.io/${{ secrets.DOCKER_REGISTRY_USER }}/chasquid:latest @@ -96,7 +96,7 @@ jobs: docker tag chasquid registry.gitlab.com/albertito/chasquid:$GITHUB_REF_NAME docker push registry.gitlab.com/albertito/chasquid:$GITHUB_REF_NAME - name: Gitlab tag latest - if: env.HAS_GITLAB && env.GITHUB_REF_NAME == 'main' + if: env.HAS_GITLAB && github.ref_name == 'main' run: | docker tag chasquid registry.gitlab.com/albertito/chasquid:latest docker push registry.gitlab.com/albertito/chasquid:latest