This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: gitlab.***.net:4567/group/project/ci-image:latest | |
# https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines | |
workflow: | |
rules: | |
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" | |
when: never | |
- when: always | |
variables: | |
PY_COLORS: '1' | |
GIT_SUBMODULE_STRATEGY: recursive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create deploy to dedicated prod: | |
stage: pre-prod-deploy | |
image: gitlab.***.net:4567/group/app-infra/ci-image:latest | |
script: | |
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.***.net/group/app-infra.git | |
- cd app-infra | |
- python3 scripts/generate_ci.py | |
- cp -r ci-out .. | |
artifacts: | |
paths: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: gitlab.****.net:4567/group/project/ci-image:latest | |
# https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines | |
workflow: | |
rules: | |
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" | |
when: never | |
- when: always | |
variables: | |
PY_COLORS: '1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: $CI_REGISTRY_IMAGE/$CI_IMAGE_NAME:latest | |
services: | |
- docker:dind | |
stages: | |
- generate-ci | |
- triggers | |
generate-ci: | |
stage: generate-ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: app-xx | |
name: app-xx | |
namespace: {{NAMESPACE}} | |
spec:... | |
spec: | |
containers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- integration-test | |
- pre-dev-deploy | |
- dev-deploy | |
- continue-to-prod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV=$1 | |
APP=$2 | |
PACKAGE=$3 | |
mvn clean install | |
rc=$? | |
if [[ $rc -ne 0 ]]; then | |
echo "Maven build failed"; exit $rc | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- integration-test | |
- push | |
- dev-deploy | |
- prod-deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import sys | |
def git(*args): | |
""" | |
:param args: the parameters for the git command | |
:return: the result of the git command as string | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- integration | |
- dev-release | |
- prod-release |
NewerOlder