Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Push nightly images to ghcr (no-changelog) #10580

Merged
merged 4 commits into from
Aug 28, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/docker-images-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.0.0

- name: Login to GitHub Container Registry
uses: docker/login-action@v3.0.0
with:
tomi marked this conversation as resolved.
Show resolved Hide resolved
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to DockerHub
uses: docker/login-action@v3.0.0
with:
Expand All @@ -64,8 +71,23 @@ jobs:
[[ "${{github.event.inputs.merge-master}}" == "true" ]] && git remote add upstream https://github.com/n8n-io/n8n.git -f; git merge upstream/master --allow-unrelated-histories || echo ""
shell: bash

- name: Build and push
- name: Build and push to DockerHub
uses: docker/build-push-action@v5.1.0
with:
context: .
file: ./docker/images/n8n-custom/Dockerfile
build-args: |
N8N_RELEASE_TYPE=nightly
platforms: linux/amd64,linux/arm64
tomi marked this conversation as resolved.
Show resolved Hide resolved
provenance: false
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
tomi marked this conversation as resolved.
Show resolved Hide resolved

- name: Build and push to GitHub Container Registry
uses: docker/build-push-action@v5.1.0
if: github.event.inputs.tag == 'nightly'
with:
context: .
file: ./docker/images/n8n-custom/Dockerfile
Expand All @@ -76,7 +98,7 @@ jobs:
push: true
tomi marked this conversation as resolved.
Show resolved Hide resolved
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ secrets.DOCKER_USERNAME }}/n8n:${{ github.event.inputs.tag || 'nightly' }}
tags: ghcr.io/${{ github.repository_owner }}/n8n:nightly

- name: Call Success URL - optionally
run: |
Expand Down
Loading