chore: docker build workflow

This commit is contained in:
Kieran 2023-02-09 19:05:53 +00:00
parent 8c4cbcdfdc
commit 0381eb8cd0
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

18
.github/workflows/docker.yaml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Docker build
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- name: Build the Docker image
run: docker buildx build -t ghcr.io/${{ github.repository_owner }}/snort:latest --platform linux/amd64,linux/arm64 --push .