|
@ -12,7 +12,7 @@ on: |
|
|
jobs: |
|
|
jobs: |
|
|
docker-build: |
|
|
docker-build: |
|
|
name: Build Docker |
|
|
name: Build Docker |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ${{ matrix.arch.os }} |
|
|
if: | |
|
|
if: | |
|
|
github.repository_owner == 'wg-easy' && |
|
|
github.repository_owner == 'wg-easy' && |
|
|
startsWith(github.ref, 'refs/tags/v') |
|
|
startsWith(github.ref, 'refs/tags/v') |
|
@ -21,15 +21,17 @@ jobs: |
|
|
strategy: |
|
|
strategy: |
|
|
fail-fast: false |
|
|
fail-fast: false |
|
|
matrix: |
|
|
matrix: |
|
|
platform: |
|
|
arch: |
|
|
- linux/amd64 |
|
|
- platform: linux/amd64 |
|
|
- linux/arm64 |
|
|
os: ubuntu-latest |
|
|
|
|
|
- platform: linux/arm64 |
|
|
|
|
|
os: ubuntu-24.04-arm |
|
|
steps: |
|
|
steps: |
|
|
- uses: actions/checkout@v4 |
|
|
- uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
- name: Prepare |
|
|
- name: Prepare |
|
|
run: | |
|
|
run: | |
|
|
platform=${{ matrix.platform }} |
|
|
platform=${{ matrix.arch.platform }} |
|
|
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV |
|
|
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV |
|
|
|
|
|
|
|
|
- name: Docker meta |
|
|
- name: Docker meta |
|
@ -59,7 +61,7 @@ jobs: |
|
|
uses: docker/build-push-action@v6 |
|
|
uses: docker/build-push-action@v6 |
|
|
with: |
|
|
with: |
|
|
context: . |
|
|
context: . |
|
|
platforms: ${{ matrix.platform }} |
|
|
platforms: ${{ matrix.arch.platform }} |
|
|
labels: ${{ steps.meta.outputs.labels }} |
|
|
labels: ${{ steps.meta.outputs.labels }} |
|
|
tags: ghcr.io/wg-easy/wg-easy |
|
|
tags: ghcr.io/wg-easy/wg-easy |
|
|
outputs: type=image,push-by-digest=true,name-canonical=true,push=true |
|
|
outputs: type=image,push-by-digest=true,name-canonical=true,push=true |
|
|