Skip to content

Commit

Permalink
update prod action to do backup
Browse files Browse the repository at this point in the history
  • Loading branch information
jjstratton committed Nov 27, 2024
1 parent a43f374 commit fdb5bb5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/prod-promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
username: ${{ secrets.EFILING_ARTIFACTORY_USERNAME }}
password: ${{ secrets.EFILING_ARTIFACTORY_PASSWORD }}

- name: Backup Prod Image from Artifactory
working-directory: ${{env.WORKING_DIRECTORY}}
run: |
docker pull artifacts.developer.gov.bc.ca/efc7-${{ github.event.inputs.application }}/${{ github.event.inputs.application }}:prod
docker tag artifacts.developer.gov.bc.ca/efc7-${{ github.event.inputs.application }}/${{ github.event.inputs.application }}:prod artifacts.developer.gov.bc.ca/efc7-${{ github.event.inputs.application }}/${{ github.event.inputs.application }}:prod-backup
docker push artifacts.developer.gov.bc.ca/efc7-${{ github.event.inputs.application }}/${{ github.event.inputs.application }}:prod-backup
- name: Docker Pull Test Image from Artifactory
working-directory: ${{env.WORKING_DIRECTORY}}
run: |
Expand Down

0 comments on commit fdb5bb5

Please sign in to comment.