@@ -39,9 +39,8 @@ SKIP_GIT If defined, git is not invoked and \${NETBOX_PATH} will not be alter
39
39
40
40
TAG The version part of the image tag.
41
41
${_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>
45
44
46
45
IMAGE_NAMES The names used for the image including the registry
47
46
Used for tagging the image.
@@ -104,24 +103,21 @@ GH_ACTION If defined, special 'echo' statements are enabled that set the
104
103
${_GREEN} Default:${_CLEAR} undefined
105
104
106
105
CHECK_ONLY Only checks if the build is needed and sets the GH Action output.
106
+ ${_GREEN} Default:${_CLEAR} undefined
107
107
108
108
${_BOLD} Examples:${_CLEAR}
109
109
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
116
112
'netboxcommunity/netbox:snapshot'.
117
113
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 '.
121
117
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 '.
125
121
126
122
SRC_ORG=cimnine ${0} feature-x
127
123
This will fetch the 'feature-x' branch from https://github.com/cimnine/netbox.git,
@@ -259,10 +255,7 @@ DOCKER_REGISTRY="${DOCKER_REGISTRY-docker.io}"
259
255
DOCKER_ORG=" ${DOCKER_ORG-netboxcommunity} "
260
256
DOCKER_REPO=" ${DOCKER_REPO-netbox} "
261
257
case " ${NETBOX_BRANCH} " in
262
- master)
263
- TAG=" ${TAG-latest} "
264
- ;;
265
- develop)
258
+ main)
266
259
TAG=" ${TAG-snapshot} "
267
260
;;
268
261
* )
@@ -278,7 +271,7 @@ TARGET_DOCKER_TAG_PROJECT="${TARGET_DOCKER_TAG}-${PROJECT_VERSION}"
278
271
279
272
# ##
280
273
# composing the additional DOCKER_SHORT_TAG,
281
- # i.e. "v2.6.1 " becomes "v2.6 ",
274
+ # i.e. "v4.2.0 " becomes "v4.2 ",
282
275
# which is only relevant for version tags
283
276
# Also let "latest" follow the highest version
284
277
# ##
0 commit comments