.gitea/workflows/build.yml aktualisiert
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
name: Build container image
|
name: Build container image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -51,6 +50,7 @@ jobs:
|
|||||||
AUTH_BASE64: ${{ secrets.READONLY_AUTH_BASE64 }}
|
AUTH_BASE64: ${{ secrets.READONLY_AUTH_BASE64 }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
sed "s|READONLY_TOKEN_PLACEHOLDER|${AUTH_BASE64}|g" \
|
sed "s|READONLY_TOKEN_PLACEHOLDER|${AUTH_BASE64}|g" \
|
||||||
configs/auth.json.template > configs/auth.json
|
configs/auth.json.template > configs/auth.json
|
||||||
|
|
||||||
@@ -95,14 +95,32 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Containerfile
|
file: ./Containerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
|
||||||
tags: ${{ steps.metadata.outputs.tags }}
|
tags: ${{ steps.metadata.outputs.tags }}
|
||||||
labels: ${{ steps.metadata.outputs.labels }}
|
labels: ${{ steps.metadata.outputs.labels }}
|
||||||
|
|
||||||
|
pull: true
|
||||||
|
|
||||||
oci-mediatypes: true
|
oci-mediatypes: true
|
||||||
compression: zstd
|
compression: zstd
|
||||||
|
|
||||||
provenance: false
|
provenance: false
|
||||||
sbom: false
|
sbom: false
|
||||||
|
|
||||||
|
cache-from: ${{ github.event_name != 'pull_request' && format('type=registry,ref={0}/{1}:buildcache-amd64-main', env.IMAGE_REGISTRY, env.IMAGE_NAME) || '' }}
|
||||||
|
cache-to: ${{ github.event_name != 'pull_request' && format('type=registry,ref={0}/{1}:buildcache-amd64-main,mode=max', env.IMAGE_REGISTRY, env.IMAGE_NAME) || '' }}
|
||||||
|
|
||||||
|
build-args: |
|
||||||
|
BUILDKIT_OCI_MEDIATYPE=true
|
||||||
|
|
||||||
|
outputs: ${{ github.event_name != 'pull_request' && format('type=registry,push=true,oci-mediatypes=true,compression=zstd,compression-args=binary-path=/usr/bin/go-zstd-chunked') || '' }}
|
||||||
|
|
||||||
|
- name: Install gettext dependencies
|
||||||
|
if: github.event_name != 'pull_request' && github.ref_name == 'main'
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gettext
|
||||||
|
|
||||||
- name: Install Cosign
|
- name: Install Cosign
|
||||||
if: github.event_name != 'pull_request' && github.ref_name == 'main'
|
if: github.event_name != 'pull_request' && github.ref_name == 'main'
|
||||||
uses: sigstore/cosign-installer@v4.1.2
|
uses: sigstore/cosign-installer@v4.1.2
|
||||||
|
|||||||
Reference in New Issue
Block a user