Commit 95e3d24a authored by Morten Knutsen's avatar Morten Knutsen

Merge branch 'gitlab-ci-helpers' into 'master'

Convert to use gitlab-ci-helpers

See merge request !2
parents f145ad32 938d4c30
Pipeline #20188 passed with stages
in 9 minutes and 59 seconds
image: registry.uninett.no/asm/kubernetes-deploy:v0.19
include:
- project: 'asm/gitlab-ci-helpers'
file: '/gitlab-ci-helpers.yml'
variables:
KUBE_PROD_DOMAIN: saml2int.org # The main domain for your application.
KUBE_TEST_DOMAIN: saml2int.paas2.uninett.no # A domain which test versions of your application can be launched under.
KUBE_TEST_ID: saml2int
HTTP_PORT: '80' # The port number of the web server.
stages:
- build
# - test
- scan
- staging
- production
build:
extends: .docker-build
stage: build
script:
- build
only:
- branches
imagescan:
extends: .imagescan
stage: scan
image: registry.uninett.no/public/twistcli
script:
- gitlab-ci-scan
services:
- name: docker:dind
alias: docker-dind
only:
- branches
production:
extends: .production
stage: production
script:
- deploy kubernetes/deployment.yaml
environment:
name: production
url: https://$KUBE_PROD_DOMAIN
variables:
URL: https://$KUBE_PROD_DOMAIN
when: manual
only:
- master
staging:
extends: .staging
stage: staging
script:
- deploy kubernetes/deployment.yaml
environment:
name: staging
url: https://$KUBE_TEST_DOMAIN
variables:
URL: https://$KUBE_TEST_DOMAIN
only:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment