Skip to content

feat: update Docker images to version 1.6.0-rc1 and adjust environmen… #220

feat: update Docker images to version 1.6.0-rc1 and adjust environmen…

feat: update Docker images to version 1.6.0-rc1 and adjust environmen… #220

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:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get BW tag
run: |
if [ "$GITHUB_REF" = "refs/heads/main" ] ; then
echo "BW_TAG=1.6.0-beta" >> $GITHUB_ENV
else
echo "BW_TAG=dev" >> $GITHUB_ENV
fi
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.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 CrowdSec appsec tests
run: ./.tests/crowdsec.sh appsec
- 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.9'
run: ./.tests/build-push.sh "${{ env.BW_TAG }}"