mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 21:37:32 -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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
docker-context: ['', '-debian']
|
||||||
|
platforms: [linux/amd64, linux/arm64, linux/arm/v7]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -30,23 +36,11 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./docker/images/n8n
|
context: ./docker/images/n8n${{ matrix.docker-context }}
|
||||||
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
|
|
||||||
build-args: |
|
build-args: |
|
||||||
N8N_VERSION=${{ steps.vars.outputs.tag }}
|
N8N_VERSION=${{ steps.vars.outputs.tag }}
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: ${{ matrix.platforms }}
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}-debian
|
${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}${{ matrix.docker-context }}
|
||||||
${{ secrets.DOCKER_USERNAME }}/n8n:latest-debian
|
${{ secrets.DOCKER_USERNAME }}/n8n:latest${{ matrix.docker-context }}
|
||||||
|
|
Loading…
Reference in a new issue