Skip to content

Workflow for be

Workflow for be #17

Workflow file for this run

name: Merge
on:
pull_request:
branches: [dev]
types: [closed]
concurrency:
# PR open and close use the same group, allowing only one at a time
group: pr-${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
# https://github.com/bcgov-nr/action-builder-ghcr
builds:
name: Builds
runs-on: ubuntu-22.04
permissions:
packages: write
strategy:
matrix:
package: [clamav, scan-backend]
include:
- package: clamav
triggers: ('containers/clamav')
build_context: ./containers/clamav
- package: scan-backend
triggers: ('/')
build_context: /
timeout-minutes: 10
steps:
- uses: bcgov-nr/action-builder-ghcr@v2.0.0
with:
keep_versions: 50
package: ${{ matrix.package }}
build_context: ${{ matrix.build_context }}
tag: dev
triggers: ${{ matrix.triggers }}
deploys:
name: Deploys Anitvirus
needs: [builds]
environment: tools
permissions:
issues: write
runs-on: ubuntu-22.04
strategy:
matrix:
name: [clamav, scan-backend]
include:
- name: clamav
file: containers/clamav/openshift/templates/clamav-dc.yaml
overwrite: true
- name: scan-backend
file: openshift.deploy.yaml
overwrite: true
steps:
- uses: bcgov-nr/action-deployer-openshift@v2.0.0
with:
file: ${{ matrix.file }}
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: ${{ matrix.overwrite }}
parameters: -p ZONE=prod -p PROMOTE=${{ github.repository }}/clamav:dev
repository: ${{ matrix.repository }}
verification_path: ${{ matrix.verification_path }}