2023-09-09 11:18:23 +00:00
|
|
|
name: Docker CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
2023-09-13 18:37:09 +00:00
|
|
|
branches:
|
|
|
|
- "**"
|
2023-09-13 18:09:23 +00:00
|
|
|
tags-ignore:
|
|
|
|
- "v*"
|
2023-09-09 11:18:23 +00:00
|
|
|
|
|
|
|
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
|
2023-09-13 06:52:19 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2023-09-09 11:18:23 +00:00
|
|
|
|
|
|
|
# https://github.com/marketplace/actions/docker-setup-buildx
|
|
|
|
- name: Set up Docker Buildx
|
2023-09-13 06:52:35 +00:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2023-09-09 11:18:23 +00:00
|
|
|
|
|
|
|
# https://github.com/docker/build-push-action#multi-platform-image
|
|
|
|
- name: Build and push to Docker Hub
|
2023-09-13 08:27:30 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2023-09-09 11:18:23 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
platforms: linux/amd64,linux/arm64
|