Skip to content

chore(ci): remove prod deployment and promotion jobs (#519) #418

chore(ci): remove prod deployment and promotion jobs (#519)

chore(ci): remove prod deployment and promotion jobs (#519) #418

Workflow file for this run

name: Merge
on:
push:
branches: [main]
paths-ignore:
- "*.md"
- ".github/**"
- ".graphics/**"
- "!.github/workflows/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions: {}
jobs:
vars:
name: Resolve Images
runs-on: ubuntu-26.04
permissions:
contents: read
packages: write
pull-requests: read
strategy:
matrix:
package: [backend-java, backend-py, migrations-py]
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
# Resolve the image digest built for this commit (squash merges walk back to the PR build)
- name: Resolve image
id: tracker
uses: bcgov/actions/image-tracker@4026bfd276b8a5839029106099b13edfb594b2c3 # v0.8.0
with:
package: ${{ matrix.package }}
max_depth: 100
# Tag that digest with the merge commit SHA; deploys and promotion use this tag
- name: Tag image with commit SHA
uses: shrink/actions-docker-registry-tag@e6aaef25c595b6e0edd18bf4c7dbfea3abd43299 # v5
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
target: ${{ steps.tracker.outputs.digest }}
tags: ${{ github.sha }}
deploy-test:
name: Deploy (TEST)
permissions:
contents: read # Required for repository access
needs: [vars]
uses: ./.github/workflows/.deploy.yml
secrets:
db_password: ${{ secrets.db_password }}
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
environment: test
target: test
tag: ${{ github.sha }}
integration-tests:
name: Integration Tests for APIs
needs: [deploy-test]
permissions:
contents: read
defaults:
run:
working-directory: integration-tests
runs-on: ubuntu-26.04
strategy:
matrix:
name: [quarkus, fastapi]
include:
- name: quarkus
baseUrl: https://${{ github.event.repository.name }}-test-backend-java.apps.silver.devops.gov.bc.ca
- name: fastapi
baseUrl: https://${{ github.event.repository.name }}-test-backend-py.apps.silver.devops.gov.bc.ca
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: "24"
cache: npm
cache-dependency-path: integration-tests/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run integration tests
run: BASE_URL=${{ matrix.baseUrl }} API_NAME=${{ matrix.name }} node src/main.js