@@ -39,9 +39,8 @@ SKIP_GIT If defined, git is not invoked and \${NETBOX_PATH} will not be alter
3939
4040TAG The version part of the image tag.
4141 ${_GREEN} Default:${_CLEAR}
42- When <branch>=master: latest
43- When <branch>=develop: snapshot
44- Else: same as <branch>
42+ When <branch>=main: snapshot
43+ Else: same as <branch>
4544
4645IMAGE_NAMES The names used for the image including the registry
4746 Used for tagging the image.
@@ -104,24 +103,21 @@ GH_ACTION If defined, special 'echo' statements are enabled that set the
104103 ${_GREEN} Default:${_CLEAR} undefined
105104
106105CHECK_ONLY Only checks if the build is needed and sets the GH Action output.
106+ ${_GREEN} Default:${_CLEAR} undefined
107107
108108${_BOLD} Examples:${_CLEAR}
109109
110- ${0} master
111- This will fetch the latest 'master' branch, build a Docker Image and tag it
112- 'netboxcommunity/netbox:latest'.
113-
114- ${0} develop
115- This will fetch the latest 'develop' branch, build a Docker Image and tag it
110+ ${0} main
111+ This will fetch the latest 'main' branch, build a Docker Image and tag it
116112 'netboxcommunity/netbox:snapshot'.
117113
118- ${0} v2.6.6
119- This will fetch the 'v2.6.6 ' tag, build a Docker Image and tag it
120- 'netboxcommunity/netbox:v2.6.6 ' and 'netboxcommunity/netbox:v2.6 '.
114+ ${0} v4.2.0
115+ This will fetch the 'v4.2.0 ' tag, build a Docker Image and tag it
116+ 'netboxcommunity/netbox:v4.2.0 ' and 'netboxcommunity/netbox:v4.2 '.
121117
122- ${0} develop-2.7
123- This will fetch the 'develop-2.7 ' branch, build a Docker Image and tag it
124- 'netboxcommunity/netbox:develop-2.7 '.
118+ ${0} feature
119+ This will fetch the 'feature ' branch, build a Docker Image and tag it
120+ 'netboxcommunity/netbox:feature '.
125121
126122SRC_ORG=cimnine ${0} feature-x
127123 This will fetch the 'feature-x' branch from https://github.com/cimnine/netbox.git,
@@ -259,10 +255,7 @@ DOCKER_REGISTRY="${DOCKER_REGISTRY-docker.io}"
259255DOCKER_ORG=" ${DOCKER_ORG-netboxcommunity} "
260256DOCKER_REPO=" ${DOCKER_REPO-netbox} "
261257case " ${NETBOX_BRANCH} " in
262- master)
263- TAG=" ${TAG-latest} "
264- ;;
265- develop)
258+ main)
266259 TAG=" ${TAG-snapshot} "
267260 ;;
268261* )
@@ -278,7 +271,7 @@ TARGET_DOCKER_TAG_PROJECT="${TARGET_DOCKER_TAG}-${PROJECT_VERSION}"
278271
279272# ##
280273# composing the additional DOCKER_SHORT_TAG,
281- # i.e. "v2.6.1 " becomes "v2.6 ",
274+ # i.e. "v4.2.0 " becomes "v4.2 ",
282275# which is only relevant for version tags
283276# Also let "latest" follow the highest version
284277# ##
0 commit comments