add helm & docker to CI

This commit is contained in:
Jens Langhammer 2019-02-08 15:09:15 +01:00
parent 648f614a1a
commit 261dc36bb1
3 changed files with 26 additions and 1 deletions

View file

@ -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]

View file

@ -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

View file

@ -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