-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
43 lines (36 loc) · 1.51 KB
/
Copy pathjustfile
File metadata and controls
43 lines (36 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
set dotenv-load
set unstable
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
# Keep a plain `just` invocation as a recipe index.
[private]
default:
@just --list
# Run fast repository-owned checks without building images.
check:
@pnpm run check
# Build and inspect only the Core and Full application images.
dagger-check:
@DAGGER_NO_NAG=1 dagger -q call -m dagger check --source .
# Publish Core and Full from the current checkout's matching stable tag.
# Requires GHCR_USERNAME and GHCR_TOKEN in the ignored .env file.
[script("bash")]
publish-app-images release_tag:
set -euo pipefail
username="${GHCR_USERNAME:-}"
token="${GHCR_TOKEN:-}"
release_tag="{{ release_tag }}"
# Validate the stable tag, credentials, and tag/current-commit relationship
# before Dagger starts. The helper never contacts GHCR or prints a secret.
revision="$(GHCR_USERNAME="$username" GHCR_TOKEN="$token" node scripts/validate-app-publication.ts "$release_tag")"
# Dagger reads the token as a Secret through env:GHCR_TOKEN; it is never a
# command-line argument, build argument, or value persisted in the cache.
export GHCR_TOKEN="$token"
DAGGER_NO_NAG=1 dagger -q call -m dagger publish \
--source . \
--release-tag "$release_tag" \
--revision "$revision" \
--registry-username "$username" \
--registry-password env:GHCR_TOKEN
# Verify the pulled, digest-pinned memory-service images in disposable containers.
verify-memory-images:
@pnpm run verify:memory-images