Skip to content

testing

testing #264

Workflow file for this run

name: build
on:
push:
paths-ignore:
- "README.md"
pull_request:
jobs:
# build-6-0:
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# arch: [amd64, arm32v6, arm64v8]
# variant: [~, profiling]
# fail-fast: false
# steps:
# - uses: actions/checkout@v4
# - uses: docker/setup-qemu-action@v1
# - uses: docker/setup-buildx-action@v1
# - run: ARCH=${{ matrix.arch }} ../build.sh ${{ matrix.variant }}
# working-directory: "6.0"
# build-7-0:
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# arch: [amd64, arm64v8]
# variant: [~, profiling]
# fail-fast: false
# steps:
# - uses: actions/checkout@v4
# - uses: docker/setup-qemu-action@v1
# - uses: docker/setup-buildx-action@v1
# - run: ARCH=${{ matrix.arch }} ../build.sh ${{ matrix.variant }}
# working-directory: "7.0"
build-master:
runs-on: ubuntu-22.04
strategy:
matrix:
arch: [amd64, arm64v8]
variant: [~, profiling]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- if: ${{ matrix.variant == '' }}
run: echo "TAG=master-${{ matrix.arch }}" >> "$GITHUB_ENV"
- if: ${{ matrix.variant != '' }}
run: echo "TAG=master-${{ matrix.arch }}-${{ matrix.variant}}" >> "$GITHUB_ENV"
- run: echo "Building $TAG"
- run: TAG="docker.io/jasonish/suricata:${TAG}" ARCH=${{ matrix.arch }} ../build.sh ${{ matrix.variant }}
working-directory: "master"
- run: docker save --output "${TAG}".tar "docker.io/jasonish/suricata:${TAG}"
- run: ls -lR
- uses: actions/upload-artifact@v3
with:
name: containers
path: "${{ env.TAG }}.tar"
push-master:
runs-on: ubuntu-22.04
needs: [build-master]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: actions/download-artifact@v3
with:
name: containers
- run: ls -lR
- run: |
for image in *.tar; do
docker load < $image
done
- run: docker ps -a
- run: ../deploy.sh --build
working-directory: master