Update openshift.deploy.yml #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [vhers-virus-scan] | |
include: | |
- package: vhers-virus-scan | |
build_context: ./ | |
triggers: ('vhers-virus-scan/') | |
build_file: Dockerfile | |
timeout-minutes: 10 | |
steps: | |
- uses: bcgov-nr/[email protected] | |
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: [vhers-virus-scan] | |
include: | |
- name: vhers-virus-scan | |
file: ./openshift.deploy.yml | |
overwrite: true | |
steps: | |
- uses: bcgov-nr/[email protected] | |
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=tools | |
repository: ${{ matrix.repository }} | |
verification_path: ${{ matrix.verification_path }} |