because I got bored of customising my CV for every job
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(CVG-33): remove Spindle workflow, make build-images.sh standalone

+7 -21
-17
.tangled/workflows/build.yaml
··· 1 - when: 2 - - event: ["push"] 3 - branch: ["main"] 4 - 5 - engine: nixery 6 - 7 - dependencies: 8 - - docker 9 - - coreutils 10 - - bash 11 - - git 12 - 13 - steps: 14 - - name: build and push images 15 - command: | 16 - export VERSION="$(git rev-parse --short HEAD)" 17 - ./ci/build-images.sh
+7 -4
ci/build-images.sh
··· 3 3 4 4 # Builds and pushes server + worker Docker images to GHCR. 5 5 # 6 - # Required env vars: 7 - # VERSION — image tag: semver (e.g. "1.2.3") or git SHA short (e.g. "a80b30a") 8 - # GITHUB_TOKEN — GHCR auth token (also used as build arg for npm auth) 6 + # Usage: ./ci/build-images.sh [VERSION] 7 + # 8 + # VERSION defaults to git short SHA if not provided. 9 + # GITHUB_TOKEN must be set (GHCR auth + npm auth for @riotbyte-com packages). 10 + # 11 + # Optional env vars: 9 12 # REGISTRY — container registry (default: ghcr.io) 10 13 # IMAGE_BASE — image name prefix (default: ghcr.io/riotbyte-com/cv-generator) 11 14 12 15 REGISTRY="${REGISTRY:-ghcr.io}" 13 16 IMAGE_BASE="${IMAGE_BASE:-${REGISTRY}/riotbyte-com/cv-generator}" 17 + VERSION="${1:-${VERSION:-$(git rev-parse --short HEAD)}}" 14 18 15 - : "${VERSION:?VERSION is required}" 16 19 : "${GITHUB_TOKEN:?GITHUB_TOKEN is required}" 17 20 18 21 echo "${GITHUB_TOKEN}" | docker login "${REGISTRY}" -u _ --password-stdin