Something went wrong on our end
-
Dominik Hebeler authored
# Conflicts: # .gitlab-ci.yml
Dominik Hebeler authored# Conflicts: # .gitlab-ci.yml
.gitlab-ci.yml 2.34 KiB
variables:
DOCKER_HOST: "tcp://docker-dind.gitlab-suma:2375"
AUTO_DEVOPS_BUILD_IMAGE_EXTRA_ARGS: "--network host"
POSTGRES_ENABLED: "false"
CODE_QUALITY_DISABLED: "true"
CONTAINER_SCANNING_DISABLED: "true"
DAST_DISABLED: "true"
DEPENDENCY_SCANNING_DISABLED: "true"
LICENSE_MANAGEMENT_DISABLED: "true"
PERFORMANCE_DISABLED: "true"
SAST_DISABLED: "true"
TEST_DISABLED: "true"
include:
- template: Jobs/Build.gitlab-ci.yml
- template: Jobs/Deploy.gitlab-ci.yml
.auto-deploy:
image: "registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v1.0.6"
stages:
- prepare
- build
- test
- deploy # dummy stage to follow the template guidelines
- review
- dast
- staging
- canary
- production
- incremental rollout 10%
- incremental rollout 25%
- incremental rollout 50%
- incremental rollout 100%
- performance
- cleanup
prepare_secrets:
stage: prepare
image: alpine:latest
script:
- cp $ENV_FILE .env # Also provide env file
artifacts:
paths:
- .env
only:
- branches
- tags
prepare_node:
stage: prepare
image: node:10
variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm"
before_script:
- npm install -g npm-cache
- npm-cache install --cacheDirectory "$CI_PROJECT_DIR/.npm-package-cache" npm
script:
- npm run prod
artifacts:
paths:
- public/js/
- public/css/
- public/mix-manifest.json
cache:
# Cache per Branch
key: "metager-${CI_JOB_NAME}"
paths:
- .npm
- .npm-package-cache