ci: Use multiple jobs for publishing various docker images (#4837)

ci: use multiple jobs for publishing various docker images
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-12-06 17:26:53 +01:00 committed by GitHub
parent 9dbb3ea182
commit a09ff27f43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}