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
| #!/usr/bin/env python | |
| import os | |
| import semver | |
| import subprocess | |
| import sys | |
| def git(*args): | |
| return subprocess.check_output(["git"] + list(args)) |
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
| style: gitlab | |
| template: CHANGELOG.tpl.md | |
| info: | |
| title: CHANGELOG | |
| repository_url: https://******* | |
| options: | |
| commits: | |
| filters: | |
| Type: | |
| - feat |
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 |
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-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
| 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 | |
| - 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
| 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: $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
| 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' |
OlderNewer