From 373c1f8d76b11a5638b2a4aa753417c67f0c2e13 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 17 May 2023 12:21:21 +0200 Subject: [PATCH] add early support for tags --- .albatros | 7 +- example/forgejo.hook.tag.json | 110 +++++++++++++++++++++++ example/forgejo.push.json | 158 ++++++++++++++++++++++++++++++++++ hcl/nixcache/builder.hcl | 11 +-- hcl/nixcache/user.sh | 6 +- pkg/handler.go | 15 +++- 6 files changed, 292 insertions(+), 15 deletions(-) create mode 100644 example/forgejo.hook.tag.json create mode 100644 example/forgejo.push.json diff --git a/.albatros b/.albatros index 9bc5bc3..f95cde2 100755 --- a/.albatros +++ b/.albatros @@ -4,12 +4,7 @@ set -euxo pipefail nix run .#build-static nix run .#build-container -if [[ $BRANCH == "main" && -f $SECRET_PATH ]]; then -# Load secrets -set +x -source $SECRET_PATH -set -x - +if [[ ! -z $TAG && ! -z $DOCKER_AUTH ]]; then # Configure Docker Auth mkdir .docker cat > .docker/config.json <