Skip to content
Snippets Groups Projects
Commit ee067fe8 authored by Nathan Bockisch's avatar Nathan Bockisch
Browse files

Added yaml and sh scripts to build go modules via CI

parent 1585524d
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
stages:
- build-base
- push-base
- cache-build
- build
- unit-test
- test-coverage
- push
- deploy-coverage-page
# - build-base
# - push-base
# - cache-build
# - build
# - unit-test
# - test-coverage
# - push
# - deploy-coverage-page
- generate-yaml
- trigger
- deploy
- e2e-test
- .post
# - deploy
# - e2e-test
# - .post
variables:
# Gitlab optimization https://docs.gitlab.com/ee/ci/large_repositories/
......@@ -339,9 +339,12 @@ go generate yaml:
script:
- DEPLOY_ENV=${DEPLOY_ENV} ./ci/bin/generate-go-yaml.py
rules:
- if: $CI_MERGE_REQUEST_ID
changes:
- apps/cli/executables/go/**/*
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- apps/cli/executables/pexable/**/*
- apps/cli/executables/go/**/*
- if: '$CI_COMMIT_TAG =~ /^end-of-sprint-[0-9]+/ || $CI_COMMIT_TAG =~ /[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/'
variables:
# override DEPLOY_ENV
......@@ -351,7 +354,7 @@ go generate yaml:
DEPLOY_ENV: "prod"
artifacts:
paths:
- generated-pex-build-pipeline.yml
- generated-go-build-pipeline.yml
# Trigger child pipeline based on generated go builder yaml
go child pipeline:
......@@ -362,6 +365,9 @@ go child pipeline:
job: go generate yaml
strategy: depend
rules:
- if: $CI_MERGE_REQUEST_ID
changes:
- apps/cli/executables/go/**/*
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- apps/cli/executables/go/**/*
......
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