Skip to content

Commit

Permalink
Change default tag to dev (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwneisen authored Dec 17, 2024
1 parent 35b1935 commit af331b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/push-to-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit af331b1

Please sign in to comment.