Update documentation

This commit is contained in:
Jop Zitman 2025-05-16 16:36:34 +08:00
parent cb8340a3e5
commit 1ce5cf30c9
5 changed files with 102 additions and 46 deletions

View file

@ -84,27 +84,51 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
id: push
- name: Extract metadata (tags, labels) for Docker (server)
id: meta-server
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-server
- name: Extract metadata (tags, labels) for Docker (client)
id: meta-client
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-client
- name: Build and push Docker image (server)
id: push-server
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta-server.outputs.tags }}
labels: ${{ steps.meta-server.outputs.labels }}
target: server
- name: Generate artifact attestation
- name: Build and push Docker image (client)
id: push-client
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta-client.outputs.tags }}
labels: ${{ steps.meta-client.outputs.labels }}
target: client
- name: Generate artifact attestation (server)
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-server
subject-digest: ${{ steps.push-server.outputs.digest }}
push-to-registry: true
- name: Generate artifact attestation (client)
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-client
subject-digest: ${{ steps.push-client.outputs.digest }}
push-to-registry: true