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: variables:
HELPERS_FILE: docker-build.yml HELPERS_FILE: docker-build.yml
HELM_HELPERS_FILE: helm-package.yml
APP_HELM_NAME: policy APP_HELM_NAME: policy
DOCKER_FILE: deployment/ci/Dockerfile DOCKER_FILE: deployment/ci/Dockerfile
...@@ -8,12 +10,16 @@ stages: ...@@ -8,12 +10,16 @@ stages:
- test - test
- build - build
- manifest - manifest
- lint
- package
- deploy - deploy
include: include:
- project: "${HELPERS_PATH}" - project: "${HELPERS_PATH}"
file: "${HELPERS_FILE}" file: "${HELPERS_FILE}"
- template: "Workflows/Branch-Pipelines.gitlab-ci.yml" - template: "Workflows/Branch-Pipelines.gitlab-ci.yml"
- project: 'gaiax/tsa/ci-helpers'
file: 'helm-package.yml'
lint: lint:
image: golangci/golangci-lint:latest image: golangci/golangci-lint:latest
...@@ -63,7 +69,7 @@ dockerize sync: ...@@ -63,7 +69,7 @@ dockerize sync:
- amd64-docker - amd64-docker
script: script:
- cd ./cmd/sync - 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 build -t "${CI_REGISTRY_IMAGE}/sync:${CI_COMMIT_REF_NAME}" .
- docker push "${CI_REGISTRY_IMAGE}/sync:${CI_COMMIT_REF_NAME}" - docker push "${CI_REGISTRY_IMAGE}/sync:${CI_COMMIT_REF_NAME}"
only: only:
...@@ -82,3 +88,18 @@ cloud: ...@@ -82,3 +88,18 @@ cloud:
release: release:
extends: .manifest-release extends: .manifest-release
stage: manifest 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 apiVersion: v1
appVersion: v1.0.2 appVersion: v1.4.3
description: policy deployment description: policy deployment
name: policy name: policy
version: 1.0.2 version: 1.4.3
icon: "https://www.vereign.com/wp-content/themes/vereign2020/images/vereign-logo.svg" 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