Skip to content

Commit

Permalink
build: Use CARGO_VERSION for tagging released docker images instead o…
Browse files Browse the repository at this point in the history
…f git tag
  • Loading branch information
seakayone committed Sep 5, 2024
1 parent 88ccf0a commit f3640ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DOCKER_REPO := "daschswiss/dsp-meta"
CARGO_VERSION := `cargo metadata --format-version=1 --no-deps | jq --raw-output '.packages[].version'`
COMMIT_HASH := `git log --pretty=format:'%h' -n 1`
GIT_TAG := `git describe --tags --exact-match 2>/dev/null || true`
IMAGE_TAG := if GIT_TAG == "" { CARGO_VERSION + "-" + COMMIT_HASH } else { GIT_TAG }
IMAGE_TAG := if GIT_TAG == "" { CARGO_VERSION + "-" + COMMIT_HASH } else { CARGO_VERSION }
DOCKER_IMAGE := DOCKER_REPO + ":" + IMAGE_TAG

# List all recipes
Expand Down

0 comments on commit f3640ab

Please sign in to comment.