Skip to content

ClamAV - Staging ClamAV in Staging using v1.9.0-3151 #21

ClamAV - Staging ClamAV in Staging using v1.9.0-3151

ClamAV - Staging ClamAV in Staging using v1.9.0-3151 #21

Workflow file for this run

name: ClamAV - Install/Upgrade/Remove
run-name: ClamAV - ${{ inputs.environment }} ClamAV in ${{ inputs.environment }} using ${{ github.ref_name }}
on:
workflow_dispatch:
inputs:
environment:
description: "Environment"
required: true
type: environment
action:
description: "Action"
required: true
type: choice
options:
- install
- upgrade
- uninstall
clamavImageTag:
description: "ClamAV Image Tag"
required: true
default: "main"
jobs:
manageClamav:
name: ${{ inputs.environment }} ClamAV in ${{ inputs.environment }}
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
env:
NAMESPACE: ${{ secrets.OPENSHIFT_ENV_NAMESPACE }}
steps:
- name: Checkout Target Branch
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- name: Log in to OpenShift
run: |
oc login --token=${{ secrets.SA_TOKEN }} --server=${{ vars.OPENSHIFT_CLUSTER_URL }}
- name: Manage ClamAV
working-directory: "./devops/helm/clam-av/main/"
run: |
make ${{ inputs.action }} NAMESPACE=${{ secrets.OPENSHIFT_ENV_NAMESPACE }} IMAGE_TAG=${{ inputs.clamavImageTag }}