Skip to content

release: v1.27.0 β€” Phase 4 encryption production wiring + desktop/AI … #32

release: v1.27.0 β€” Phase 4 encryption production wiring + desktop/AI …

release: v1.27.0 β€” Phase 4 encryption production wiring + desktop/AI … #32

Workflow file for this run

# Docker image build + push to GitHub Container Registry on every tag.
# Pull with: docker pull ghcr.io/qnbs/worldscript-studio:latest
name: Docker
on:
push:
tags: ['v*']
workflow_dispatch:
# QNBS-v3: top-level read-only follows principle of least privilege (CodeQL Token-Permissions).
permissions:
contents: read
jobs:
build-push:
name: Build & push image
runs-on: ubuntu-latest
timeout-minutes: 20
# QNBS-v3: packages:write scoped to this job only β€” prevents privilege escalation in future jobs.
permissions:
contents: read
packages: write
steps:
# QNBS-v3: SHA-pinned to prevent supply-chain attacks via mutable tags
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
with:
persist-credentials: false
- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Log in to GHCR
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64