From 6a2852ced383c139506e64846fbbde37d629e67c Mon Sep 17 00:00:00 2001 From: youegraillot Date: Sat, 9 Sep 2023 13:18:23 +0200 Subject: [PATCH] docker-ci action --- .github/workflows/docker-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/docker-ci.yml diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml new file mode 100644 index 0000000..b74c42d --- /dev/null +++ b/.github/workflows/docker-ci.yml @@ -0,0 +1,31 @@ +name: Docker CI + +on: + workflow_dispatch: + push: + +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@v2 + + # https://github.com/marketplace/actions/docker-setup-buildx + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + # https://github.com/docker/build-push-action#multi-platform-image + - name: Build and push to Docker Hub + uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/amd64,linux/arm64