From 8d2b850d06ad14138f5118abfcc08f40a5fb3986 Mon Sep 17 00:00:00 2001 From: nwneisen Date: Tue, 17 Dec 2024 10:20:57 -0700 Subject: [PATCH] Change default tag to dev --- .github/workflows/push-to-ghcr.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-to-ghcr.yml b/.github/workflows/push-to-ghcr.yml index a2d2edf2..b4d297f4 100644 --- a/.github/workflows/push-to-ghcr.yml +++ b/.github/workflows/push-to-ghcr.yml @@ -35,7 +35,9 @@ jobs: - name: Push latest image to ${{ env.REGISTRY }} working-directory: . - run: docker push ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:latest + run: | + docker tag ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:dev ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:latest + docker push ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:latest push-semver: if: ${{ github.event_name == 'release' }} @@ -71,7 +73,7 @@ jobs: run: | SEMVER=${GITHUB_REF#refs/*/} echo ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:$SEMVER - docker tag ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:latest ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:$SEMVER + docker tag ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:dev ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:$SEMVER docker push ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:$SEMVER push-sha: @@ -108,7 +110,7 @@ jobs: run: | COMMIT_SHA=$(git rev-parse --short "$GITHUB_SHA") echo ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:$COMMIT_SHA - docker tag ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:latest ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:$COMMIT_SHA + docker tag ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:dev ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:$COMMIT_SHA docker push ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:$COMMIT_SHA push-dev: @@ -143,5 +145,4 @@ jobs: - name: Push Dev image to ${{ env.REGISTRY }} working-directory: . run: | - docker tag ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:latest ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:dev docker push ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:dev