Skip to content
Snippets Groups Projects
Commit 64261a58 authored by Tancho Mihov's avatar Tancho Mihov
Browse files

Merge branch 'add-cicd' into 'main'

Add cicd

See merge request !10
parents 3bedb642 ca859d01
No related branches found
No related tags found
1 merge request!10Add cicd
Pipeline #52092 passed with stage
in 29 seconds
image: golang:latest
stages:
- build
build:
stage: build
variables:
DB_ADDR: "mongodb://localhost:27017/policy"
DB_USER: "user"
DB_PASS: "password"
REPO_URL: "https://path/to/repo.git"
REPO_USER: "gitlab-ci-token"
REPO_PASS: "${CI_JOB_TOKEN}"
BRANCH: "dev"
script:
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@code.vereign.com/gaiax/tsa/policy sync
- cd sync/cmd/sync
- go build
- ./sync -repoURL "${REPO_URL}" -repoUser "${REPO_USER}" -repoPass "${REPO_PASS}" -dbAddr "${DB_ADDR}" -dbUser "${DB_USER}" -dbPass "${DB_PASS}" -branch "${BRANCH}"
tags:
- deployment
- kubernetes-cluster-google-gaiax-staging
rules:
- if: $CI_COMMIT_BRANCH == "main"
\ No newline at end of file
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