Skip to content

ci/cd - update BW to 1.5.6 #151

ci/cd - update BW to 1.5.6

ci/cd - update BW to 1.5.6 #151

Workflow file for this run

name: Tests
on:
push:
branches: [dev, main]
jobs:
codeql:
uses: ./.github/workflows/codeql.yml
permissions:
actions: read
contents: read
security-events: write
setup:
needs: codeql
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Get BW tag
run: |
if [ "$GITHUB_REF" = "refs/heads/main" ] ; then
echo "BW_TAG=1.5.6" >> $GITHUB_ENV
else
echo "BW_TAG=dev" >> $GITHUB_ENV
fi
- name: Login to Docker Hub
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Pull and build BW
run: ./.tests/bw.sh "${{ env.BW_TAG }}"
- name: Run ClamAV tests
run: ./.tests/clamav.sh
- name: Run Coraza tests
run: ./.tests/coraza.sh
- name: Run CrowdSec live tests
run: ./.tests/crowdsec.sh live
- name: Run CrowdSec stream tests
run: ./.tests/crowdsec.sh stream
- name: Run VirusTotal tests
run: ./.tests/virustotal.sh
env:
VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}
- name: Build and push APIs
if: env.BW_TAG == '1.5.6'
run: ./.tests/build-push.sh "${{ env.BW_TAG }}"