forked from ykxVK8yL5L/spaces
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.07 KB
/
n8n-hub.yml
File metadata and controls
43 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build and Push N8n Docker Image to docker hub
on:
repository_dispatch:
workflow_dispatch:
inputs:
tag:
description: 'Tag to release'
required: true
default: '0.0.1'
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v3
with:
buildx-version: latest
qemu-version: latest
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Run Buildx
run: |
cd Base
docker buildx build . \
--platform linux/amd64 \
--output "type=image,push=true" \
--file Dockerfile-hub \
--tag ykxvk8yl5l/n8n:latest