Skip to content

fix: workflow actions SHA #12

fix: workflow actions SHA

fix: workflow actions SHA #12

Workflow file for this run

name: Docker
# Only runs on tag pushes (e.g. v1.1.0) — not on branch pushes or PRs
on:
push:
tags: ['v*']
permissions:
contents: read
packages: write
jobs:
build-server:
name: Build & Push Server Image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
- name: Log in to GitHub Container Registry
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0
with:
images: ghcr.io/${{ github.repository }}/server
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix=
- name: Build and push
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# IMPORTANT (public repo): After first push, go to GitHub → Packages → server
# → Package settings → Change visibility to "Private" if you don't want the
# compiled server image publicly pullable. The image contains NO secrets
# (all secrets are injected at runtime via env vars), but it does contain
# your compiled server code + Prisma schema.