From 261dc36bb128f2fbd67c92c2c92b5e2ddf082c00 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 8 Feb 2019 15:09:15 +0100 Subject: [PATCH] add helm & docker to CI --- .bumpversion.cfg | 4 ++++ .gitlab-ci.yml | 21 +++++++++++++++++++++ helm/passbook/Chart.yaml | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index d5ab766ad..26d0c59ce 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -14,6 +14,10 @@ values = beta stable +[bumpversion:file:helm/passbook/Chart.yaml] + +[bumpversion:file:.gitlab-ci.yml] + [bumpversion:file:passbook/__init__.py] [bumpversion:file:passbook/core/__init__.py] diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c33d4bc1..b520d4627 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,6 +39,27 @@ bandit: - bandit -r passbook stage: test +package-docker: + image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] + before_script: + - echo "{\"auths\":{\"https://docker.$NEXUS_URL/\":{\"username\":\"$NEXUS_USER\",\"password\":\"$NEXUS_PASS\"}}}" > /kaniko/.docker/config.json + script: + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination docker.pkg.beryju.org/passbook:latest --destination docker.pkg.beryju.org/passbook:0.0.1-alpha + stage: build + only: + - tags + - /^version/.*$/ +package-helm: + stage: build + script: + - curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash + - helm package helm/passbook + - ./manage.py nexus_upload --method put --url $NEXUS_URL --user $NEXUS_USER --password $NEXUS_PASS --repo helm *.tgz + only: + - tags + - /^version/.*$/ # package-3.5: # before_script: # - apt update diff --git a/helm/passbook/Chart.yaml b/helm/passbook/Chart.yaml index 3cac5c5df..752344a66 100644 --- a/helm/passbook/Chart.yaml +++ b/helm/passbook/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -appVersion: "1.0.0" +appVersion: "0.0.1-alpha" description: A Helm chart for passbook. name: passbook version: 1.0.0