Commit 9fc06f86 authored by Hogne Håskjold's avatar Hogne Håskjold

Convert to use gitlab-ci-helpers

parent f145ad32
Pipeline #20176 passed with stages
in 10 minutes and 54 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_DOMAIN: saml2int-staging.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