Commit 057e1d17 authored by Arnljot Arntsen's avatar Arnljot Arntsen
Browse files

DEICH-2021 Automated CI pipeline. Added on success to jobs and selection on...

DEICH-2021 Automated CI pipeline. Added on success to jobs and selection on manual vs scheduled run.
parent 4e7c2083
......@@ -10,6 +10,7 @@ before_script:
stages:
- build
- test
- push
- deploy
......@@ -122,7 +123,8 @@ build-tjenestekatalog:
changes:
- tjenestekatalog/**/*
deploy-test:
.deploy-test:
before_script:
- 'which ssh-agent || ( apk add --update --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing openssh-client git )'
- eval $(ssh-agent -s)
......@@ -135,92 +137,107 @@ deploy-test:
stage: deploy
when: manual
deploy-scheduled-test:
extends: .deploy-test
after_script:
- ./transitionIssues.sh Troya
only:
variables:
- $BUILD_TYPE == "scheduled"
when: on_success
deploy-manual-test:
extends: .deploy-test
after_script:
- ./transitionIssues.sh Troya
when: manual
deploy-authorization-server-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['authorization-server/**/*'] }
variables:
APPLICATION_NAME: authorization-server
deploy-catalinker-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['catalinker/**/*'] }
variables:
APPLICATION_NAME: catalinker
deploy-deichman_no-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['deichman.no/**/*'] }
variables:
APPLICATION_NAME: deichman.no
deploy-elasticsearch-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['elasticsearch/**/*'] }
variables:
APPLICATION_NAME: elasticsearch
deploy-euler-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['euler/**/*'] }
variables:
APPLICATION_NAME: euler
deploy-katalog-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['katalog/**/*'] }
variables:
APPLICATION_NAME: katalog
deploy-kibana-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['kibana/**/*'] }
variables:
APPLICATION_NAME: kibana
deploy-koha-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['koha/**/*'] }
variables:
APPLICATION_NAME: koha
deploy-mimir-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['mimir/**/*'] }
variables:
APPLICATION_NAME: mimir
deploy-resq-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['resq/**/*'] }
variables:
APPLICATION_NAME: resq
deploy-services-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['services/**/*'] }
variables:
APPLICATION_NAME: services
deploy-sibyl-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['sibyl/**/*'] }
variables:
APPLICATION_NAME: sibyl
deploy-testlab-dash-test:
extends: deploy-test
..deploy-testlab-dash-test:
extends: .deploy-test
only: { changes: ['testlab-dash/**/*'] }
variables:
APPLICATION_NAME: testlab-dash
deploy-timber-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['timber/**/*'] }
variables:
APPLICATION_NAME: timber
deploy-tjenestekatalog-test:
extends: deploy-test
extends: .deploy-test
only: { changes: ['tjenestekatalog/**/*'] }
variables:
APPLICATION_NAME: tjenestekatalog
......@@ -238,9 +255,10 @@ integration-tests:
paths:
- integration-tests/cypress/videos/
- integration-tests/cypress/screenshots/
stage: build
stage: test
only:
- schedules
when: on_success
# Push stages here
.push-latest:
......@@ -254,6 +272,14 @@ integration-tests:
only:
- tags
push-all-latest:
script: make push
stage: push
only:
variables:
- $BUILD_TYPE == "scheduled"
when: on_success
push-authorization-server-latest:
extends: .push-latest
only: { changes: ['authorization-server/**/*'] }
......
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