diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 6d5c7cb..838dc00 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -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: @@ -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 }}