Skip to content

Commit

Permalink
test25
Browse files Browse the repository at this point in the history
  • Loading branch information
gmontalvoy authored Dec 7, 2023
1 parent 8e50baf commit ec0146b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,29 @@ jobs:
needs: [compliance]
runs-on: ubuntu-latest
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 }}:${{ github.sha }}-dev

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

- name: Promote to prod
- name: Push to Prod
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ env.APP_NAME }}
tags: ${{ github.sha }}-prod
image: ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.APP_NAME }}
tags: '${{ github.sha }}-prod'
registry: ${{ env.REGISTRY }}/${{ env.ORG }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}


0 comments on commit ec0146b

Please sign in to comment.