diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 2471e775..f501a7b3 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -1,4 +1,4 @@ -name: PROD (release) +name: PROD (dispatch, release) on: release: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f501a7b3..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: PROD (dispatch, release) - -on: - release: - types: [published] - workflow_dispatch: - inputs: - tag: - description: Container tag; usually test, prod or PR number, can be omitted - default: test - required: true - type: string - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: true - -permissions: {} - -jobs: - deploy: - name: Deploy (PROD) - secrets: inherit - uses: ./.github/workflows/.deploy.yml - with: - aws_user_pools_web_client_id: 4bu2n8at3m32a2fqnvd4t06la1 - batch_client_rfsh_api_tkn_op_secret_name: fom-client-app-api - environment: prod - email_notify: FLNR.AdminServicesCariboo@gov.bc.ca - logout_chain_url: https://logon7.gov.bc.ca/clp-cgi/logoff.cgi?retnow=1&returl=https://loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/logout?redirect_uri= - tag: ${{ inputs.tag }} - target: prod - url: fom.nrs.gov.bc.ca - - images-backup: - name: Backup images (PROD) - continue-on-error: true # If no prod tags - needs: deploy - permissions: - packages: write - runs-on: ubuntu-24.04 - strategy: - matrix: - component: [api, admin, db, public] - steps: - - uses: shrink/actions-docker-registry-tag@v4 - with: - registry: ghcr.io - repository: ${{ github.repository }}/${{ matrix.component }} - target: prod - tags: prod-backup - - images-promote: - name: Promote images (PROD) - needs: [deploy, images-backup] - permissions: - packages: write - runs-on: ubuntu-24.04 - strategy: - matrix: - component: [api, admin, db, public] - steps: - - uses: shrink/actions-docker-registry-tag@v4 - with: - registry: ghcr.io - repository: ${{ github.repository }}/${{ matrix.component }} - target: ${{ needs.deploy.outputs.tag }} - tags: | - prod - ${{ github.event.release.tag_name }}