Commit 3e4c4aa7 authored by Fulcrand Guilhem's avatar Fulcrand Guilhem
Browse files

Merge branch '52-add-a-linter-stage-to-verify-jobs' into 'latest'

Resolve "Add a linter stage to verify jobs"

Closes #52

See merge request go2scale/hub!32
parents ccd381b1 2b63d158
Loading
Loading
Loading
Loading
+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
+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
+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:
+3 −0
Original line number Diff line number Diff line
stages:
  - build

docker:
  stage: build
  image:
+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:
@@ -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