From 958016fd7c277b53bfc45e1160f122b8a65d0ed2 Mon Sep 17 00:00:00 2001 From: Fabian Peter Hammerle Date: Sun, 20 Jun 2021 14:02:51 +0200 Subject: [PATCH] setup github action verifying docker build succeeds (to replace docker's autobuild service) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Docker’s Autobuild service has been targeted by the same bad actors, > so today we are disappointed to announce that > we will be discontinuing Autobuilds on the free tier starting from June 18, 2021. https://www.docker.com/blog/changes-to-docker-hub-autobuilds/ https://github.com/fphammerle/docker-onion-service/commit/d774f5131cf948ed90e81f96c14f842ff72d880d https://github.com/fphammerle/switchbot-mqtt/commit/d7b875458d6e11505fb305ecb9f1f40bb5720a21 --- .github/workflows/container-image.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/container-image.yml diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml new file mode 100644 index 0000000..92077dd --- /dev/null +++ b/.github/workflows/container-image.yml @@ -0,0 +1,26 @@ +# sync with https://github.com/fphammerle/docker-onion-service/blob/master/.github/workflows/container-image.yml + +name: container image + +on: + push: + pull_request: + schedule: + - cron: '0 20 * * 5' + +jobs: + docker-build: + runs-on: ubuntu-20.04 + steps: + - uses: docker/setup-qemu-action@v1.2.0 + - uses: docker/setup-buildx-action@v1.3.0 + # > By default, this action uses the Git context so you don't need to use + # > the actions/checkout action to checkout the repository because this + # > will be done directly by buildkit. [...] + # > any file mutation in the steps that precede [...] will be ignored + # https://github.com/marketplace/actions/build-and-push-docker-images + - uses: docker/build-push-action@v2.5.0 + with: + platforms: | + linux/amd64 + linux/arm/v7