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 | df62c0ad444e25b58b1e3bf49450113e2fde3edb (patch) | |
tree | c4f21f525a5d4465e76a5fa066f596b574d209ea /users | |
parent | CSS: various small fixes (diff) | |
download | world-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 '')
-rw-r--r-- | users/fcuny/notes/Makefile | 1 |
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: |