From f7bbe5cc1c6d407cb5a99734ad240db4fbe5f4e3 Mon Sep 17 00:00:00 2001 From: m0wer Date: Fri, 26 Nov 2021 21:07:53 +0300 Subject: [PATCH] ci(docker): build for arm --- .github/workflows/docker.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 04243ee..0ea70cf 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,8 +1,9 @@ +--- name: docker on: schedule: - - cron: '0 3 5 * *' # every friday at 3am + - cron: 0 3 5 * * # every friday at 3am push: branches: - '**' @@ -10,21 +11,18 @@ on: - '*.*.*' pull_request: branches: - - 'master' + - master jobs: docker: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v2 - - - name: Set up dynamic build ARGs + - name: Set up dynamic build ARGs id: getargs run: echo "::set-output name=version::$(cat ./stable/VERSION)" - - - name: Docker meta + - name: Docker meta id: meta uses: docker/metadata-action@v3 with: @@ -41,18 +39,16 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=sha - - - name: Login to DockerHub + - name: Login to DockerHub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push + - name: Build and push uses: docker/build-push-action@v2 with: - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64,linux/arm/v7 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}