|
| 1 | +name: Production Deployment |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [WO-2026-030-prod] |
| 6 | + paths-ignore: |
| 7 | + - '*.md' |
| 8 | + - '.github/**' |
| 9 | + - '.github/graphics/**' |
| 10 | + - '!.github/workflows/**' |
| 11 | + |
| 12 | + workflow_dispatch: |
| 13 | + # Image built is always test |
| 14 | +concurrency: |
| 15 | + # Do not interrupt previous workflows |
| 16 | + group: ${{ github.workflow }} |
| 17 | + cancel-in-progress: false |
| 18 | + |
| 19 | +permissions: {} |
| 20 | + |
| 21 | +jobs: |
| 22 | + builds: |
| 23 | + name: Build Matrix |
| 24 | + # needs: [unit_tests] |
| 25 | + permissions: |
| 26 | + packages: write |
| 27 | + runs-on: ubuntu-24.04 |
| 28 | + strategy: |
| 29 | + matrix: |
| 30 | + package: [backend, frontend, migrations, minio, matomoproxy] |
| 31 | + timeout-minutes: 30 |
| 32 | + steps: |
| 33 | + |
| 34 | + - name: Login to Artifactory |
| 35 | + if: matrix.package == 'minio' || matrix.package == 'matomoproxy' |
| 36 | + uses: docker/login-action@v3 |
| 37 | + with: |
| 38 | + registry: artifacts.developer.gov.bc.ca |
| 39 | + username: ${{ secrets.ARTIFACTORY_USERNAME }} |
| 40 | + password: ${{ secrets.ARTIFACTORY_PASSWORD }} |
| 41 | + - uses: bcgov/action-builder-ghcr@v4.0.0 |
| 42 | + with: |
| 43 | + keep_versions: 50 |
| 44 | + package: ${{ matrix.package }} |
| 45 | + tags: prod |
| 46 | + |
| 47 | + # https://github.com/bcgov/quickstart-openshift-helpers |
| 48 | + deploys: |
| 49 | + name: Deploy Application (TEST) |
| 50 | + needs: [builds] |
| 51 | + uses: ./.github/workflows/.deployer.yml |
| 52 | + secrets: inherit |
| 53 | + with: |
| 54 | + environment: production |
| 55 | + tag: prod |
| 56 | + db_user: wally |
| 57 | + directory_application: ./charts/app |
| 58 | + directory_crunchy: ./charts/crunchy |
| 59 | + values_application: values.prod.yaml |
| 60 | + values_crunchy: values.prod.yaml |
| 61 | + route: wally-production-v2 |
| 62 | + minio_host: wally-minio-prod-v2 |
| 63 | + matomo_host: wally-matomo-prod-v2 |
| 64 | + |
0 commit comments