From a09ff27f43d7cdb531f05ade322cc95717ec8477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 6 Dec 2022 17:26:53 +0100 Subject: [PATCH] ci: Use multiple jobs for publishing various docker images (#4837) ci: use multiple jobs for publishing various docker images --- .github/workflows/docker-images.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 628a611c46..cba124b2b7 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -8,6 +8,12 @@ on: jobs: build: runs-on: ubuntu-latest + + strategy: + matrix: + docker-context: ['', '-debian'] + platforms: [linux/amd64, linux/arm64, linux/arm/v7] + steps: - uses: actions/checkout@v3 @@ -30,23 +36,11 @@ jobs: - name: Build uses: docker/build-push-action@v2 with: - context: ./docker/images/n8n - build-args: | - N8N_VERSION=${{steps.vars.outputs.tag}} - platforms: linux/amd64,linux/arm64,linux/arm/v7 - push: true - tags: | - ${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }} - ${{ secrets.DOCKER_USERNAME }}/n8n:latest - - - name: Build (debian) - uses: docker/build-push-action@v2 - with: - context: ./docker/images/n8n-debian + context: ./docker/images/n8n${{ matrix.docker-context }} build-args: | N8N_VERSION=${{ steps.vars.outputs.tag }} - platforms: linux/amd64,linux/arm64,linux/arm/v7 + platforms: ${{ matrix.platforms }} push: true tags: | - ${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}-debian - ${{ secrets.DOCKER_USERNAME }}/n8n:latest-debian + ${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}${{ matrix.docker-context }} + ${{ secrets.DOCKER_USERNAME }}/n8n:latest${{ matrix.docker-context }}