From 78e67586b7573ef76097a9b8dbbc10cc9b9699b7 Mon Sep 17 00:00:00 2001 From: Chuck Adams Date: Tue, 13 Jan 2026 12:21:15 -0700 Subject: [PATCH 1/3] run build only when tagged Signed-off-by: Chuck Adams --- .github/workflows/build.yml | 3 +++ bin/build.sh | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 956541f..0816eb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,7 @@ name: Build and push container on: push: branches: [ main ] + tags: [ '*' ] env: REGISTRY: ghcr.io @@ -28,6 +29,8 @@ jobs: - name: Build and push run: bin/build.sh + env: + TAG: ${{ github.ref_name }} - name: Build Summary if: always() diff --git a/bin/build.sh b/bin/build.sh index 2e78129..4939ec4 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -40,9 +40,15 @@ if [ $? -ne 0 ]; then exit 1 fi +extra_tag='' +[[ -n ${TAG:-} ]] && extra_tag="--tag ghcr.io/fairpm/server:${TAG}" + echo "Building image…" >&2 + +# shellcheck disable=SC2086 docker build \ --tag ghcr.io/fairpm/server:latest \ + $extra_tag \ --build-context src="$BUILD_DIR" \ "$SCRIPT_DIR/container" From fe27ebfb631ef404dee47cc014f16921c4a5da30 Mon Sep 17 00:00:00 2001 From: Chuck Adams Date: Tue, 13 Jan 2026 12:27:47 -0700 Subject: [PATCH 2/3] leave some notes for the infra team Signed-off-by: Chuck Adams --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 4cc14d7..103ebb3 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,19 @@ Deployment will eventually be automatic, but in the meantime, the infrastructure To ignore files from deployment, specify them in `.distignore`. +**Notes for the infrastructure team:** + +``` +# In this repo (fairpm/site) +git checkout main +git tag -f production +git push --tags + +# Then in the fairpm/infrastructure-private repo +./jazz +cd helm/projects/site +bin/deploy production +``` ## License From 38268b783db6f26a343c519cbbcfdf36b9108db0 Mon Sep 17 00:00:00 2001 From: Chuck Adams Date: Tue, 13 Jan 2026 12:28:30 -0700 Subject: [PATCH 3/3] server, dangit Signed-off-by: Chuck Adams --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 103ebb3..d479296 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ To ignore files from deployment, specify them in `.distignore`. **Notes for the infrastructure team:** ``` -# In this repo (fairpm/site) +# In this repo (fairpm/server) git checkout main git tag -f production git push --tags