Skip to content

Node.js based forum software built for the modern web

Merge branch 'master' into develop

Barış Soner Uşaklı5c00c6a57957
diff --cc .github/workflows/docker.yml
index 9156fdbba0,a1a7cd9871..a5ce6a5d56
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@@ -16,15 -16,29 +16,29 @@@ permissions
packages: write
jobs:
- release:
- runs-on: ubuntu-latest
+ build:
+ strategy:
+ matrix:
+ include:
+ - os: ubuntu-latest
+ platforms: linux/amd64
+ required: true
+ - os: ubuntu-24.04-arm
+ platforms: linux/arm64
+ required: true
+ - os: ubuntu-24.04-arm
+ platforms: linux/arm/v7
+ required: false
+ continue-on-error: ${{ !matrix.required }}
+ runs-on: ${{ matrix.os }}
steps:
-
+ - name: Prepare
+ run: |
+ platform=${{ matrix.platforms }}
+ echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
+ echo "IMAGE=ghcr.io/${GITHUB_REPOSITORY@L}" >> $GITHUB_ENV
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@@ -42,25 -52,17 +52,17 @@@
id: meta
uses: docker/metadata-action@v5
with:
- images: ghcr.io/${{ github.repository }}
- tags: |
- type=semver,pattern={{version}}
- type=semver,pattern={{major}}.{{minor}}
- type=semver,pattern={{major}}.x
- type=raw,value=latest,enable={{is_default_branch}}
- type=ref,event=branch,enable=${{ github.event.repository.default_branch != github.ref }}
- type=raw,value=${{ env.CURRENT_DATE_NST }}
- flavor: |
- latest=true
+ images: ${{ env.IMAGE }}
-
+
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: var-cache-node-modules
key: var-cache-node-modules-${{ hashFiles('Dockerfile', 'install/package.json') }}
-
+
- name: Build and push Docker images
+ id: build
uses: docker/build-push-action@v6
with:
cache-from: type=gha