Skip to content
Snippets Groups Projects
Commit 91125d55 authored by Kalin Daskalov's avatar Kalin Daskalov
Browse files

Fix CI jobs and integrate helm into the repo.

parent fc42eec0
No related branches found
No related tags found
1 merge request!50Fix CI jobs and integrate helm into the repo.
---
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"]
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment