all repos — website @ 4fced5c6ea1a3bf56778e88b91d5c82a66807caf

My website

make cleaning up old docker images easier

set docker tag to include current date
Alan Pearce alan@alanpearce.eu
Sat, 11 May 2024 16:56:08 +0200
commit

4fced5c6ea1a3bf56778e88b91d5c82a66807caf

parent

e1fd936435e89087f7ffd9fe4db079f1e7fe3e23

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M justfilejustfile
@@ -2,7 +2,7 @@ #! /usr/bin/env -S nix develop . --command just --justfile 
 fly-system := "x86_64-linux"
 fly-registry := "registry.fly.io/alanpearce-eu"
-docker-tag := env_var_or_default("DOCKER_TAG", `git rev-parse HEAD`)
+docker-tag := env_var_or_default("DOCKER_TAG", `date --utc +%Y%m%d%H%M%S` + "-" + `git rev-parse --short HEAD`)
 version := `sentry-cli releases propose-version`
 environment := "production"
 started-at := `date +%s`