|
|
|
@ -16,6 +16,7 @@ env:
|
|
|
|
DOCKERHUB_REGISTRY: docker.io
|
|
|
|
DOCKERHUB_REGISTRY: docker.io
|
|
|
|
IMAGE_NAME: ${{ github.repository }}
|
|
|
|
IMAGE_NAME: ${{ github.repository }}
|
|
|
|
TEST_TAG: triliumnext/notes:test
|
|
|
|
TEST_TAG: triliumnext/notes:test
|
|
|
|
|
|
|
|
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
test_docker:
|
|
|
|
test_docker:
|
|
|
|
@ -72,8 +73,10 @@ jobs:
|
|
|
|
packages: write
|
|
|
|
packages: write
|
|
|
|
attestations: write
|
|
|
|
attestations: write
|
|
|
|
id-token: write
|
|
|
|
id-token: write
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Extract metadata (tags, labels) for GHCR image
|
|
|
|
- name: Extract metadata (tags, labels) for GHCR image
|
|
|
|
id: ghcr-meta
|
|
|
|
id: ghcr-meta
|
|
|
|
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
|
|
|
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
|
|
|
@ -107,7 +110,8 @@ jobs:
|
|
|
|
id: ghcr-push
|
|
|
|
id: ghcr-push
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
platforms: ${{ env.PLATFORMS }}
|
|
|
|
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.ghcr-meta.outputs.tags }}
|
|
|
|
tags: ${{ steps.ghcr-meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.ghcr-meta.outputs.labels }}
|
|
|
|
labels: ${{ steps.ghcr-meta.outputs.labels }}
|
|
|
|
cache-from: type=gha
|
|
|
|
cache-from: type=gha
|
|
|
|
@ -129,6 +133,7 @@ jobs:
|
|
|
|
id: dh-push
|
|
|
|
id: dh-push
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
context: .
|
|
|
|
|
|
|
|
platforms: ${{ env.PLATFORMS }}
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.dh-meta.outputs.tags }}
|
|
|
|
tags: ${{ steps.dh-meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.dh-meta.outputs.labels }}
|
|
|
|
labels: ${{ steps.dh-meta.outputs.labels }}
|
|
|
|
|