about summary refs log tree commit diff
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
commit59707111caa517f0574ab2fbc74a64d153030503 (patch)
treebf066b161f29d509dbe3c2abd6b4907e5c814ea8
parentCSS: various small fixes (diff)
downloadfcuny.net-59707111caa517f0574ab2fbc74a64d153030503.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.
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1275e1b..d602b52 100644
--- a/Makefile
+++ b/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: