Skip to content

Commit d140793

Browse files
nikolaik/python-nodejs:python3.10-nodejs24-alpine
1 parent bc43501 commit d140793

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
###########
2+
# Local test workflow to reproduce build failures
3+
# Skips Docker Hub login and push operations
4+
###########
5+
6+
name: Docker Image CI - Local Test
7+
8+
on:
9+
push:
10+
paths:
11+
- "release-versions/*"
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Get current repository
18+
uses: actions/checkout@v1
19+
- name: Get the version
20+
id: vars
21+
run: echo ::set-output name=tag::$(cat release-versions/n8n-latest.txt)
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v1
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v1
26+
27+
- run: cp default-requirements.txt images/n8n/requirements.txt
28+
- name: Build (default => alpine) - LOCAL TEST
29+
uses: docker/build-push-action@v2
30+
with:
31+
context: ./images/n8n
32+
build-args: |
33+
N8N_VERSION=${{steps.vars.outputs.tag}}
34+
platforms: linux/amd64
35+
push: false # Skip push for local testing
36+
tags: |
37+
local-test/n8n-python:${{ steps.vars.outputs.tag }}
38+
local-test/n8n-python:latest

.github/workflows/docker-images.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ name: Docker Image CI
1010
on:
1111
push:
1212
paths:
13-
- 'release-versions/*'
14-
workflow_dispatch: # Allow manual triggering
13+
- "release-versions/*"
14+
workflow_dispatch: # Allow manual triggering
1515

1616
jobs:
1717
build:
@@ -75,4 +75,4 @@ jobs:
7575
with:
7676
tag_name: v${{steps.vars.outputs.tag}}
7777
release_name: Release ${{steps.vars.outputs.tag}}
78-
body: n8n v${{steps.vars.outputs.tag}} (python3 included)
78+
body: n8n v${{steps.vars.outputs.tag}} (python3 included)

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,4 @@ Temporary Items
181181
n8n_data/
182182

183183
# act (GitHub Actions local runner) configuration
184-
.secrets
185-
.github/workflows/*-local-test.yml
184+
.secrets

0 commit comments

Comments
 (0)