Skip to content

Commit

Permalink
test31
Browse files Browse the repository at this point in the history
  • Loading branch information
gmontalvoy authored Dec 7, 2023
1 parent 7bf1dec commit 4451a3a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,18 @@ jobs:
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 }}:${{ github.sha }}-dev

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 }}:${{ github.sha }}-dev ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.APP_NAME }}:prod-${{ github.sha }}

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 }}
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}




Expand Down

0 comments on commit 4451a3a

Please sign in to comment.