diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..03eefecab42a60bc0b5d69be8dbd6e6761926df3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +image: gcr.io/kaniko-project/executor:debug + +stages: + - build-and-push + +build-and-push-job: + stage: build-and-push + script: + - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:${CI_COMMIT_SHA:0:8} --destination $CI_REGISTRY_IMAGE:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..74da3e61dddec6593ecc6a39e6263af545e1cbcb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM netboxcommunity/netbox:v2.8.8 +ENV NAPALM_USERNAME netbox-napalm + +RUN apk add git && pip3 install napalm diff --git a/values.yaml b/values.yaml index 4a97bb48a07f69766ad8064f7e613c62a64065f3..bb760dbeaf3454be104b78f75d9e0b1967d304cd 100644 --- a/values.yaml +++ b/values.yaml @@ -1,6 +1,6 @@ image: - repository: netboxcommunity/netbox - tag: v2.8.8 + repository: gitlab-registry.nautilus.optiputer.net/prp/netbox + tag: latest resources: limits: @@ -20,4 +20,4 @@ nginx: memory: 128Mi persistence: - storageClass: "rook-block" + storageClass: "rook-block" \ No newline at end of file