refactor(core): Rebuild docker infrastructure (#8451)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-26 13:18:49 +01:00
committed by GitHub
parent fc5c562785
commit 1db35c18e9
11 changed files with 75 additions and 100 deletions

View File

@@ -9,7 +9,6 @@ on:
required: true
default: '18'
options:
- '16'
- '18'
- '20'
@@ -25,6 +24,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.0.0
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v3.0.0
with:
@@ -34,11 +40,13 @@ jobs:
- name: Build
uses: docker/build-push-action@v5.1.0
with:
context: ./docker/images/n8n-base
context: .
file: ./docker/images/n8n-base/Dockerfile
build-args: |
NODE_VERSION=${{github.event.inputs.node_version}}
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64,linux/arm64
provenance: false
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/base:${{ github.event.inputs.node_version }}
ghcr.io/${{ github.repository_owner }}/base:${{ github.event.inputs.node_version }}