diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0dbb20f060e9e2aa297b18a404df0c19d220027..8ad36148bfd00b6d0979f97541d63fc66fa276cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,7 @@ +--- variables: HELPERS_FILE: docker-build.yml + HELM_HELPERS_FILE: helm-package.yml APP_HELM_NAME: policy DOCKER_FILE: deployment/ci/Dockerfile @@ -8,12 +10,16 @@ stages: - test - build - manifest + - lint + - package - deploy include: - project: "${HELPERS_PATH}" file: "${HELPERS_FILE}" - template: "Workflows/Branch-Pipelines.gitlab-ci.yml" + - project: 'gaiax/tsa/ci-helpers' + file: 'helm-package.yml' lint: image: golangci/golangci-lint:latest @@ -63,7 +69,7 @@ dockerize sync: - amd64-docker script: - cd ./cmd/sync - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker build -t "${CI_REGISTRY_IMAGE}/sync:${CI_COMMIT_REF_NAME}" . - docker push "${CI_REGISTRY_IMAGE}/sync:${CI_COMMIT_REF_NAME}" only: @@ -82,3 +88,18 @@ cloud: release: extends: .manifest-release stage: manifest + +helm-lint: + image: ${HELM_IMAGE} + extends: .helm-lint + stage: lint + tags: + - amd64-docker + +helm-package: + image: ${HELM_IMAGE} + extends: .helm-package + stage: package + tags: + - amd64-docker + needs: ["helm-lint"] diff --git a/deployment/helm/Chart.yaml b/deployment/helm/Chart.yaml index 44e3e394afedc623d50736306dcfcb89dc9fd92b..5394d28d8f5dc8fe697e02751f678c8d2e7dacb7 100644 --- a/deployment/helm/Chart.yaml +++ b/deployment/helm/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 -appVersion: v1.0.2 +appVersion: v1.4.3 description: policy deployment name: policy -version: 1.0.2 +version: 1.4.3 icon: "https://www.vereign.com/wp-content/themes/vereign2020/images/vereign-logo.svg"