mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
ci: Use multiple jobs for publishing various docker images (#4837)
ci: use multiple jobs for publishing various docker images
This commit is contained in:
parent
9dbb3ea182
commit
a09ff27f43
26
.github/workflows/docker-images.yml
vendored
26
.github/workflows/docker-images.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue