about summary refs log tree commit diff
path: root/users/fcuny/notes/Makefile
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-24 19:24:52 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-24 19:25:57 -0700
commitdf62c0ad444e25b58b1e3bf49450113e2fde3edb (patch)
treec4f21f525a5d4465e76a5fa066f596b574d209ea /users/fcuny/notes/Makefile
parentCSS: various small fixes (diff)
downloadworld-df62c0ad444e25b58b1e3bf49450113e2fde3edb.tar.gz
build: sleep before tagging
The last deploy was tagged v13, while the version deployed was 14. It's
possible that running `fly info` too quickly after a deploy returns the
incorrect version. Adding a `sleep 5` before running the command for git
tag.
Diffstat (limited to 'users/fcuny/notes/Makefile')
-rw-r--r--users/fcuny/notes/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/fcuny/notes/Makefile b/users/fcuny/notes/Makefile
index 1275e1b..d602b52 100644
--- a/users/fcuny/notes/Makefile
+++ b/users/fcuny/notes/Makefile
@@ -19,6 +19,7 @@ deploy: worktree-clean docker-build
 	@echo "Deploying to fly ..."
 	flyctl deploy \
 		--build-arg IMAGE_REF=$(DOCKER_IMAGE_REF)
+	@sleep 5
 	git tag --message $(shell flyctl info -j |jq '.App | "\(.Name)/v\(.Version)"') $(shell flyctl info -j |jq '.App | "\(.Name)/v\(.Version)"')
 
 docker-build: