From 6d027f41fd0fa0a3e46af81600388664a96343aa Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 21 May 2022 23:57:18 +0200 Subject: [PATCH] github ci arm builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Martin Löffler --- .github/workflows/docker.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 80cb8f4..2ac5c48 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -11,6 +11,9 @@ on: jobs: publish_api: runs-on: ubuntu-latest + strategy: + matrix: + architecture: [linux/amd64, linux/arm64] steps: - name: Checkout uses: actions/checkout@v2 @@ -32,11 +35,15 @@ jobs: uses: docker/build-push-action@v3 with: context: ./api + platforms: ${{ matrix.architecture }} push: true - tags: ghcr.io/janderedev/automod:api + tags: ghcr.io/janderedev/automod:api-${{ matrix.architecture }} publish_web: runs-on: ubuntu-latest + strategy: + matrix: + architecture: [linux/amd64, linux/arm64] steps: - name: Checkout uses: actions/checkout@v2 @@ -58,11 +65,15 @@ jobs: uses: docker/build-push-action@v3 with: context: ./web + platforms: ${{ matrix.architecture }} push: true - tags: ghcr.io/janderedev/automod:web + tags: ghcr.io/janderedev/automod:web-${{ matrix.architecture }} publish_bridge: runs-on: ubuntu-latest + strategy: + matrix: + architecture: [linux/amd64, linux/arm64] steps: - name: Checkout uses: actions/checkout@v2 @@ -84,11 +95,15 @@ jobs: uses: docker/build-push-action@v3 with: context: ./bridge + platforms: ${{ matrix.architecture }} push: true - tags: ghcr.io/janderedev/automod:bridge + tags: ghcr.io/janderedev/automod:bridge-${{ matrix.architecture }} publish_bot: runs-on: ubuntu-latest + strategy: + matrix: + architecture: [linux/amd64, linux/arm64] steps: - name: Checkout uses: actions/checkout@v2 @@ -110,5 +125,6 @@ jobs: uses: docker/build-push-action@v3 with: context: ./bot + platforms: ${{ matrix.architecture }} push: true - tags: ghcr.io/janderedev/automod:bot \ No newline at end of file + tags: ghcr.io/janderedev/automod:bot-${{ matrix.architecture }} \ No newline at end of file