Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
18 changes: 17 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ name: Docker
# documentation.

on:
# Allow manual runs from the Actions tab
workflow_dispatch:
inputs:
note:
description: Optional note for this run
required: false
push:
branches: [ master ]
branches: [ master, main ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
Expand All @@ -31,6 +37,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Ensure full history and tags are available if needed
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down Expand Up @@ -59,3 +74,4 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18
FROM --platform=$BUILDPLATFORM node:18

RUN apt-get update && apt-get install -y graphicsmagick && apt-get clean

Expand Down