2022-08-31 06:25:52 -07:00
|
|
|
name: Docker Base Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
node_version:
|
|
|
|
description: 'Node.js version to build this image with.'
|
2023-06-02 06:23:28 -07:00
|
|
|
type: choice
|
2022-08-31 06:25:52 -07:00
|
|
|
required: true
|
|
|
|
default: '16'
|
2023-06-02 06:23:28 -07:00
|
|
|
options:
|
|
|
|
- '16'
|
|
|
|
- '18'
|
2022-08-31 06:25:52 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-21 01:50:15 -07:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2022-08-31 06:25:52 -07:00
|
|
|
- name: Set up QEMU
|
2022-09-21 01:50:15 -07:00
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
|
2022-08-31 06:25:52 -07:00
|
|
|
- name: Set up Docker Buildx
|
2022-09-21 01:50:15 -07:00
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
2022-08-31 06:25:52 -07:00
|
|
|
- name: Login to DockerHub
|
2022-09-21 01:50:15 -07:00
|
|
|
uses: docker/login-action@v2
|
2022-08-31 06:25:52 -07:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2022-09-21 01:50:15 -07:00
|
|
|
|
2022-08-31 06:25:52 -07:00
|
|
|
- name: Build
|
2023-03-06 00:53:50 -08:00
|
|
|
uses: docker/build-push-action@v4
|
2022-08-31 06:25:52 -07:00
|
|
|
with:
|
|
|
|
context: ./docker/images/n8n-base
|
|
|
|
build-args: |
|
|
|
|
NODE_VERSION=${{github.event.inputs.node_version}}
|
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
2023-03-06 00:53:50 -08:00
|
|
|
provenance: false
|
2022-08-31 06:25:52 -07:00
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
${{ secrets.DOCKER_USERNAME }}/base:${{ github.event.inputs.node_version }}
|