Skip to content

suricata: add CINI flag format and /bin/ #60

suricata: add CINI flag format and /bin/

suricata: add CINI flag format and /bin/ #60

Workflow file for this run

# Copyright (C) 2024 ANSSI
# SPDX-License-Identifier: CC0-1.0
name: Publish Docker image
on:
push:
branches:
- 'main'
- 'dev'
tags:
- '*'
jobs:
push_to_registry:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- context: ./webapp
image: anssi/shovel-webapp
platforms: linux/amd64,linux/arm64
- context: ./suricata
image: anssi/shovel-suricata
platforms: linux/amd64,linux/arm64
- context: ./grafana
image: anssi/shovel-grafana
platforms: linux/amd64,linux/arm64
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
with:
platforms: "arm,arm64,s390x,ppc64le"
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb
- uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
with:
images: ${{ matrix.image }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
with:
context: ${{ matrix.context }}
platforms: ${{ matrix.platforms }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max