From e30a59938f9ba65819b554f8530a74397295e2ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?German=20M=2E=20Y=C3=A9benes?= Date: Thu, 7 Dec 2023 18:37:12 +0100 Subject: [PATCH] test35 --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e9a1b0..cc364a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,20 +64,25 @@ jobs: steps: - name: Check out code uses: actions/checkout@v3 + - name: Log in to Docker Registry uses: docker/login-action@v1 with: registry: ${{ env.REGISTRY }} username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_PASSWORD }} + - name: Pull Dev Image run: docker pull ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.APP_NAME }}:dev-${{ github.sha }} + - name: Tag Image as Prod run: docker tag ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.APP_NAME }}:dev-${{ github.sha }} ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.APP_NAME }}:prod-${{ github.sha }} + - name: Push to Prod uses: redhat-actions/push-to-registry@v2 with: - image: ${{ env.ORG }}/${{ env.APP_NAME }}:prod-${{ github.sha }} + image: ${{ env.ORG }}/${{ env.APP_NAME }} + tags: prod-${{ github.sha }} registry: ${{ env.REGISTRY }} username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_PASSWORD }}