Skip to content

Commit

Permalink
Add build-args and tags to build-and-push job
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Kais committed Dec 31, 2024
1 parent 986a49a commit 885279c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ on:

jobs:
build-and-push:
# needs: [publish-to-npm]
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/[email protected]
Expand All @@ -23,8 +26,15 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v3.0.0
uses: docker/build-push-action@v5.1.0
with:
context: ./docker/images/n8n
build-args: |
N8N_VERSION=${{ needs.publish-to-npm.outputs.release }}
platforms: linux/amd64,linux/arm64
provenance: false
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/your-image-name:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/n8n:${{ needs.publish-to-npm.outputs.release }}
ghcr.io/${{ github.repository_owner }}/n8n:${{ needs.publish-to-npm.outputs.release }}

0 comments on commit 885279c

Please sign in to comment.