Skip to content

Commit

Permalink
Merge pull request #4 from bcgov/workflow
Browse files Browse the repository at this point in the history
On merge deploy clamav
  • Loading branch information
habibaz authored Dec 5, 2023
2 parents ef27186 + 7cecb1d commit dd90182
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/.merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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:
deploys:
name: Deploys Anitvirus
environment: tools
permissions:
issues: write
runs-on: ubuntu-22.04
strategy:
matrix:
name: [containers/clamav]
include:
- name: clamav
file: containers/clamav/openshift/templates/clamav-dc.yaml
overwrite: false

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=prod -p NAME=${{ github.event.repository.name }}
repository: ${{ matrix.repository }}
verification_path: ${{ matrix.verification_path }}

0 comments on commit dd90182

Please sign in to comment.