Loading .gitlab-ci.yml +12 −0 Original line number Diff line number Diff line stages: - static_tests - build - production ci_linter: image: golang:1.15.2-alpine3.12 stage: static_tests script: - apk add --no-cache git - go get gitlab.com/orobardet/gitlab-ci-linter - for JOB_PATH in jobs/*; do - JOB=$(basename ${JOB_PATH}) - gitlab-ci-linter ${JOB_PATH}/${JOB}.yml - done documentation: image: name: squidfunk/mkdocs-material:5.2.2 Loading jobs/apidoc/apidoc.yml +3 −0 Original line number Diff line number Diff line # Job from go2scale hub --> hub.go2scale.io stages: - build apidoc: image: name: node:12.18.3-alpine3.12 Loading jobs/coala/coala.yml +3 −0 Original line number Diff line number Diff line # "Quality check" job # See https://gitlab.com/go2scale/jobs/ for more informations stages: - static_tests quality_check: stage: static_tests image: Loading jobs/docker/docker.yml +3 −0 Original line number Diff line number Diff line stages: - build docker: stage: build image: Loading jobs/helm_deploy/helm_deploy.yml +3 −37 Original line number Diff line number Diff line # "Helm" jobs # See https://gitlab.com/go2scale/jobs/ for more informations stages: - review .helm: image: registry.gitlab.com/go2scale/dockerfiles/helm:v0.2.3 variables: Loading Loading @@ -41,40 +44,3 @@ cleanup_review: - master variables: - $REVIEW_DISABLE #test_stage: # extends: deploy_stage # stage: application_level # script: # - helm secrets diff upgrade ${CI_PROJECT_PATH_SLUG} ${CHART_PATH} -f ${VALUES_PATH}/${ENV}.yaml -f ${VALUES_PATH}/secrets.${ENV}.yaml --set-string image.tag=${CI_COMMIT_SHORT_SHA} --namespace "$KUBE_NAMESPACE" --allow-unreleased deploy_stage: extends: .helm stage: staging environment: name: staging url: https://${CI_ENVIRONMENT_SLUG}.${CI_PROJECT_NAME}.${KUBE_INGRESS_BASE_DOMAIN}/ only: - master except: variables: - $STAGING_DISABLE #test_production: # extends: deploy_production # stage: application_level # script: # - helm secrets diff upgrade ${CI_PROJECT_PATH_SLUG} ${CHART_PATH} -f ${VALUES_PATH}/${ENV}.yaml -f ${VALUES_PATH}/secrets.${ENV}.yaml --set-string image.tag=${CI_COMMIT_SHORT_SHA} --namespace "$KUBE_NAMESPACE" --allow-unreleased deploy_production: extends: .helm stage: production environment: name: production url: https://${CI_PROJECT_NAME}.${KUBE_INGRESS_BASE_DOMAIN}/ when: manual only: - master except: variables: - $PRODUCTION_DISABLE Loading
.gitlab-ci.yml +12 −0 Original line number Diff line number Diff line stages: - static_tests - build - production ci_linter: image: golang:1.15.2-alpine3.12 stage: static_tests script: - apk add --no-cache git - go get gitlab.com/orobardet/gitlab-ci-linter - for JOB_PATH in jobs/*; do - JOB=$(basename ${JOB_PATH}) - gitlab-ci-linter ${JOB_PATH}/${JOB}.yml - done documentation: image: name: squidfunk/mkdocs-material:5.2.2 Loading
jobs/apidoc/apidoc.yml +3 −0 Original line number Diff line number Diff line # Job from go2scale hub --> hub.go2scale.io stages: - build apidoc: image: name: node:12.18.3-alpine3.12 Loading
jobs/coala/coala.yml +3 −0 Original line number Diff line number Diff line # "Quality check" job # See https://gitlab.com/go2scale/jobs/ for more informations stages: - static_tests quality_check: stage: static_tests image: Loading
jobs/docker/docker.yml +3 −0 Original line number Diff line number Diff line stages: - build docker: stage: build image: Loading
jobs/helm_deploy/helm_deploy.yml +3 −37 Original line number Diff line number Diff line # "Helm" jobs # See https://gitlab.com/go2scale/jobs/ for more informations stages: - review .helm: image: registry.gitlab.com/go2scale/dockerfiles/helm:v0.2.3 variables: Loading Loading @@ -41,40 +44,3 @@ cleanup_review: - master variables: - $REVIEW_DISABLE #test_stage: # extends: deploy_stage # stage: application_level # script: # - helm secrets diff upgrade ${CI_PROJECT_PATH_SLUG} ${CHART_PATH} -f ${VALUES_PATH}/${ENV}.yaml -f ${VALUES_PATH}/secrets.${ENV}.yaml --set-string image.tag=${CI_COMMIT_SHORT_SHA} --namespace "$KUBE_NAMESPACE" --allow-unreleased deploy_stage: extends: .helm stage: staging environment: name: staging url: https://${CI_ENVIRONMENT_SLUG}.${CI_PROJECT_NAME}.${KUBE_INGRESS_BASE_DOMAIN}/ only: - master except: variables: - $STAGING_DISABLE #test_production: # extends: deploy_production # stage: application_level # script: # - helm secrets diff upgrade ${CI_PROJECT_PATH_SLUG} ${CHART_PATH} -f ${VALUES_PATH}/${ENV}.yaml -f ${VALUES_PATH}/secrets.${ENV}.yaml --set-string image.tag=${CI_COMMIT_SHORT_SHA} --namespace "$KUBE_NAMESPACE" --allow-unreleased deploy_production: extends: .helm stage: production environment: name: production url: https://${CI_PROJECT_NAME}.${KUBE_INGRESS_BASE_DOMAIN}/ when: manual only: - master except: variables: - $PRODUCTION_DISABLE