Skip to content

Commit

Permalink
fix the retag step in pipeline cd
Browse files Browse the repository at this point in the history
  • Loading branch information
and-mora committed Nov 29, 2024
1 parent 57088c6 commit 1a7f89b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: "Build the app image"
- name: "Build and push the app image"
id: image
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
Expand Down Expand Up @@ -157,7 +157,8 @@ jobs:
#
- name: Re-tag the app image
run: |
docker image tag ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ needs.versioning.outputs.new_version }}
docker pull ghcr.io/${{ github.repository }}:${{ needs.versioning.outputs.new_version }}-RC
docker image tag ghcr.io/${{ github.repository }}:${{ needs.versioning.outputs.new_version }}-RC ghcr.io/${{ github.repository }}:${{ needs.versioning.outputs.new_version }}
docker rmi ghcr.io/${{ github.repository }}:${{ needs.versioning.outputs.new_version }}-RC
docker image push --all-tags ghcr.io/${{ github.repository }}:${{ needs.versioning.outputs.new_version }}
Expand Down

0 comments on commit 1a7f89b

Please sign in to comment.