Skip to content

Commit

Permalink
build: improve builder tag usage
Browse files Browse the repository at this point in the history
Make sure to build with the latest tagged builder image
  • Loading branch information
gsanchietti committed Jul 30, 2024
1 parent 5aeb1f6 commit 97c78ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
#

workdir=$(pwd)
image_tag=${IMAGE_TAG:-latest}
image_tag=${IMAGE_TAG}
if [ -z "$image_tag" ]; then
# use latest tag for the builder
image_tag=$(git describe --tags --abbrev=0)
fi
image="ghcr.io/nethserver/nethsecurity-builder:$image_tag"

VALID_ARGS=$(getopt -o n --long no-cache -- "$@")
Expand Down

0 comments on commit 97c78ea

Please sign in to comment.