Skip to content

Commit 11615df

Browse files
authored
Merge pull request #1368 from tobiasge/prepare-netbox-4.2
Prepare for Netbox 4.2
2 parents 69e997f + 1a70f97 commit 11615df

File tree

6 files changed

+19
-26
lines changed

6 files changed

+19
-26
lines changed

Diff for: .github/workflows/push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- ./build-latest.sh
5656
- PRERELEASE=true ./build-latest.sh
5757
- ./build.sh feature
58-
- ./build.sh develop
58+
- ./build.sh main
5959
os:
6060
- ubuntu-latest
6161
- self-hosted

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- ./build-latest.sh
1818
- PRERELEASE=true ./build-latest.sh
1919
- ./build.sh feature
20-
- ./build.sh develop
20+
- ./build.sh main
2121
platform:
2222
- linux/amd64,linux/arm64
2323
fail-fast: false

Diff for: Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
7171
&& apt-get update -qq \
7272
&& apt-get install \
7373
--yes -qq --no-install-recommends \
74-
unit=1.33.0-1~noble \
75-
unit-python3.12=1.33.0-1~noble \
74+
unit=1.34.0-1~noble \
75+
unit-python3.12=1.34.0-1~noble \
7676
&& rm -rf /var/lib/apt/lists/*
7777

7878
COPY --from=builder /opt/netbox/venv /opt/netbox/venv

Diff for: VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.2
1+
3.1.0

Diff for: build.sh

+13-20
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ SKIP_GIT If defined, git is not invoked and \${NETBOX_PATH} will not be alter
3939
4040
TAG 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
4645
IMAGE_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
106105
CHECK_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
126122
SRC_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}"
259255
DOCKER_ORG="${DOCKER_ORG-netboxcommunity}"
260256
DOCKER_REPO="${DOCKER_REPO-netbox}"
261257
case "${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
###

Diff for: docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
netbox: &netbox
3-
image: docker.io/netboxcommunity/netbox:${VERSION-v4.1-3.0.2}
3+
image: docker.io/netboxcommunity/netbox:${VERSION-v4.2-3.1.0}
44
depends_on:
55
- postgres
66
- redis

0 commit comments

Comments
 (0)