File tree Expand file tree Collapse file tree 3 files changed +42
-5
lines changed
Expand file tree Collapse file tree 3 files changed +42
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ name: Docker Image CI
1010on :
1111 push :
1212 paths :
13- - ' release-versions/*'
14- workflow_dispatch : # Allow manual triggering
13+ - " release-versions/*"
14+ workflow_dispatch : # Allow manual triggering
1515
1616jobs :
1717 build :
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)
Original file line number Diff line number Diff line change @@ -181,5 +181,4 @@ Temporary Items
181181n8n_data /
182182
183183# act (GitHub Actions local runner) configuration
184- .secrets
185- .github /workflows /* -local-test.yml
184+ .secrets
You can’t perform that action at this time.
0 commit comments