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
22 changes: 22 additions & 0 deletions .github/workflows/Docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,31 @@ jobs:
include:
- image: opensign/opensign
dockerfile: apps/OpenSign/Dockerhubfile
platform: linux/amd64
targetarch: ""
- image: opensign/opensign
dockerfile: apps/OpenSign/Dockerhubfile
platform: linux/arm64
targetarch: "arm64v8/"
- image: opensign/opensignserver
dockerfile: apps/OpenSignServer/Dockerhubfile
platform: linux/amd64
targetarch: ""
- image: opensign/opensignserver
dockerfile: apps/OpenSignServer/Dockerhubfile
platform: linux/arm64
targetarch: "arm64v8/"
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
if: matrix.platform == 'linux/arm64'
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
Expand All @@ -49,6 +68,9 @@ jobs:
with:
context: .
file: ${{ matrix.dockerfile }}
platforms: ${{ matrix.platform }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
TARGETARCH=${{ matrix.targetarch }}
4 changes: 3 additions & 1 deletion apps/OpenSign/Dockerhubfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Use an official Node runtime as the base image
FROM node:22.14.0
# Use architecture-specific base image for arm64
ARG TARGETARCH
FROM ${TARGETARCH}node:22.14.0

# Set the working directory inside the container
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions apps/OpenSignServer/Dockerhubfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use an official Node runtime as the base image
FROM node:22.14.0

ARG TARGETARCH
FROM ${TARGETARCH}node:22.14.0

# Install LibreOffice for DOCX to PDF conversions
RUN apt-get update \
Expand Down