Skip to content

Commit fdb5bb5

Browse files
author
jjstratton
committed
update prod action to do backup
1 parent a43f374 commit fdb5bb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/prod-promote.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
username: ${{ secrets.EFILING_ARTIFACTORY_USERNAME }}
2727
password: ${{ secrets.EFILING_ARTIFACTORY_PASSWORD }}
2828

29+
- name: Backup Prod Image from Artifactory
30+
working-directory: ${{env.WORKING_DIRECTORY}}
31+
run: |
32+
docker pull artifacts.developer.gov.bc.ca/efc7-${{ github.event.inputs.application }}/${{ github.event.inputs.application }}:prod
33+
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
34+
docker push artifacts.developer.gov.bc.ca/efc7-${{ github.event.inputs.application }}/${{ github.event.inputs.application }}:prod-backup
35+
2936
- name: Docker Pull Test Image from Artifactory
3037
working-directory: ${{env.WORKING_DIRECTORY}}
3138
run: |

0 commit comments

Comments
 (0)