Skip to content

Commit

Permalink
test35
Browse files Browse the repository at this point in the history
  • Loading branch information
gmontalvoy authored Dec 7, 2023
1 parent b0b45e7 commit e30a599
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit e30a599

Please sign in to comment.