Skip to content

Commit

Permalink
docker: Reintroduce cross-platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Aug 7, 2024
1 parent 645fd43 commit 865c0fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ env:
DOCKERHUB_REGISTRY: docker.io
IMAGE_NAME: ${{ github.repository }}
TEST_TAG: triliumnext/notes:test
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6

jobs:
test_docker:
Expand Down Expand Up @@ -72,8 +73,10 @@ jobs:
packages: write
attestations: write
id-token: write
steps:
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Extract metadata (tags, labels) for GHCR image
id: ghcr-meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
Expand Down Expand Up @@ -107,7 +110,8 @@ jobs:
id: ghcr-push
with:
context: .
push: true
platforms: ${{ env.PLATFORMS }}
push: true
tags: ${{ steps.ghcr-meta.outputs.tags }}
labels: ${{ steps.ghcr-meta.outputs.labels }}
cache-from: type=gha
Expand All @@ -129,6 +133,7 @@ jobs:
id: dh-push
with:
context: .
platforms: ${{ env.PLATFORMS }}
push: true
tags: ${{ steps.dh-meta.outputs.tags }}
labels: ${{ steps.dh-meta.outputs.labels }}
Expand Down

0 comments on commit 865c0fb

Please sign in to comment.