36 lines
836 B
YAML
36 lines
836 B
YAML
name: Docker CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
tags-ignore:
|
|
- "v*"
|
|
|
|
jobs:
|
|
buildandpush:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
# https://github.com/marketplace/actions/checkout
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
# https://github.com/docker/setup-qemu-action#usage
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
# https://github.com/marketplace/actions/docker-setup-buildx
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
# https://github.com/docker/build-push-action#multi-platform-image
|
|
- name: Build and push to Docker Hub
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64,linux/arm64
|