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
|
2023-07-12 06:03:23 -07:00
|
|
|
default: '18'
|
2023-06-02 06:23:28 -07:00
|
|
|
options:
|
|
|
|
- '16'
|
|
|
|
- '18'
|
2023-07-12 06:03:23 -07:00
|
|
|
- '20'
|
2022-08-31 06:25:52 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-08-22 02:21:16 -07:00
|
|
|
- uses: actions/checkout@v3.5.3
|
2022-09-21 01:50:15 -07:00
|
|
|
|
2022-08-31 06:25:52 -07:00
|
|
|
- name: Set up QEMU
|
2023-08-22 02:21:16 -07:00
|
|
|
uses: docker/setup-qemu-action@v2.2.0
|
2022-09-21 01:50:15 -07:00
|
|
|
|
2022-08-31 06:25:52 -07:00
|
|
|
- name: Set up Docker Buildx
|
2023-08-22 02:21:16 -07:00
|
|
|
uses: docker/setup-buildx-action@v2.9.1
|
2022-09-21 01:50:15 -07:00
|
|
|
|
2022-08-31 06:25:52 -07:00
|
|
|
- name: Login to DockerHub
|
2023-08-22 02:21:16 -07:00
|
|
|
uses: docker/login-action@v2.2.0
|
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-08-22 02:21:16 -07:00
|
|
|
uses: docker/build-push-action@v4.1.1
|
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 }}
|