mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
fix: workflow
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
4d3ff091aa
commit
061e990d87
57
.github/workflows/docker-images.yml
vendored
57
.github/workflows/docker-images.yml
vendored
|
@ -6,40 +6,41 @@ on:
|
||||||
- n8n@*
|
- n8n@*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Get the version
|
- name: Get the version
|
||||||
id: vars
|
id: vars
|
||||||
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:14})
|
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:14})
|
||||||
- name: Log in to Docker registry
|
- name: Set up QEMU
|
||||||
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: crazy-max/ghaction-docker-buildx@v3
|
uses: docker/setup-buildx-action@v1
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
buildx-version: latest
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
qemu-version: latest
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
- name: Build
|
||||||
- name: Build the Docker image of version
|
uses: docker/build-push-action@v2
|
||||||
if: success()
|
with:
|
||||||
run: |
|
context: ./docker/images/n8n
|
||||||
docker buildx build \
|
build-args: |
|
||||||
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
N8N_VERSION=${{steps.vars.outputs.tag}}
|
||||||
--build-arg N8N_VERSION=${{steps.vars.outputs.tag}} \
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
-t ${{ secrets.DOCKER_USERNAME }}/n8n:${{steps.vars.outputs.tag}} \
|
push: true
|
||||||
-t ${{ secrets.DOCKER_USERNAME }}/n8n:latest \
|
tags: |
|
||||||
--output type=image,push=true docker/images/n8n
|
${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}
|
||||||
|
${{ secrets.DOCKER_USERNAME }}/n8n:latest
|
||||||
- name: Build the Docker image of version (Debian)
|
- name: Build (debian)
|
||||||
run: |
|
uses: docker/build-push-action@v2
|
||||||
docker buildx build \
|
with:
|
||||||
--platform linux/amd64 \
|
context: ./docker/images/n8n-debian
|
||||||
--build-arg N8N_VERSION=${{steps.vars.outputs.tag}} \
|
build-args: |
|
||||||
-t ${{ secrets.DOCKER_USERNAME }}/n8n:${{steps.vars.outputs.tag}}-debian \
|
N8N_VERSION=${{ steps.vars.outputs.tag }}
|
||||||
-t ${{ secrets.DOCKER_USERNAME }}/n8n:latest-debian \
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
--output type=image,push=true docker/images/n8n-debian
|
push: true
|
||||||
|
tags: |
|
||||||
|
${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}-debian
|
||||||
|
${{ secrets.DOCKER_USERNAME }}/n8n:latest-debian
|
||||||
|
|
Loading…
Reference in a new issue