diff options
author | Franck Cuny <franck@fcuny.net> | 2021-08-24 19:24:52 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-08-24 19:25:57 -0700 |
commit | b6edafcfc6433000e41073910d3911d52b148f12 (patch) | |
tree | ce151bff8f7040ee7d8e5689233614a35b7027cb /users/fcuny | |
parent | CSS: various small fixes (diff) | |
download | world-b6edafcfc6433000e41073910d3911d52b148f12.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 '')
-rw-r--r-- | users/fcuny/blog/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/users/fcuny/blog/Makefile b/users/fcuny/blog/Makefile index 1275e1b..d602b52 100644 --- a/users/fcuny/blog/Makefile +++ b/users/fcuny/blog/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: |