Skip to content
Open
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
20 changes: 19 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,31 @@ on:
jobs:
build-and-push:
name: Build and push Docker image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- app: smp-server
app_port: "443 5223"
arch: amd64
runner: ubuntu-latest
prefix: ""
- app: smp-server
app_port: "443 5223"
arch: arm64
runner: ubuntu-24.04-arm
prefix: "arm64-"
- app: xftp-server
app_port: 443
arch: amd64
runner: ubuntu-latest
prefix: ""
- app: xftp-server
app_port: 443
arch: arm64
runner: ubuntu-24.04-arm
prefix: "arm64-"
runs-on: ${{ matrix.runner }}
steps:
- name: Clone project
uses: actions/checkout@v4
Expand All @@ -34,6 +50,7 @@ jobs:
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.app }}
flavor: |
latest=auto
prefix=${{ matrix.prefix }}
tags: |
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
Expand All @@ -43,6 +60,7 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/${{ matrix.arch }}
build-args: |
APP=${{ matrix.app }}
APP_PORT=${{ matrix.app_port }}
Expand Down