From fdb5bb5dfc6d16224a1eced9c5b774e97e81eb11 Mon Sep 17 00:00:00 2001 From: jjstratton Date: Wed, 27 Nov 2024 11:33:09 -0800 Subject: [PATCH] update prod action to do backup --- .github/workflows/prod-promote.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/prod-promote.yaml b/.github/workflows/prod-promote.yaml index fc68f7042..439307f4c 100644 --- a/.github/workflows/prod-promote.yaml +++ b/.github/workflows/prod-promote.yaml @@ -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: |