Skip to content

nightly

nightly #818

Workflow file for this run

name: nightly
on:
schedule:
# 3:33am wherever this is run...
- cron: "7 21 * * *"
workflow_dispatch:
jobs:
build-master:
runs-on: ubuntu-20.04
strategy:
matrix:
arch: [amd64, arm64v8]
arg: [~, "profiling"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- name: Docker Hub Login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- run: ../deploy.sh --build --push ${{ matrix.arch }} ${{ matrix.arg }}
working-directory: master
# - run: docker push jasonish/suricata:master-${{ matrix.arch }}
# - run: docker push jasonish/suricata:master-${{ matrix.arch }}-profiling
push-master:
runs-on: ubuntu-20.04
needs: [build-master]
steps:
- run: echo "All containers built."
- uses: actions/checkout@v2
- name: Docker Hub Login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- run: ../deploy.sh --manifest
working-directory: master