Skip to content
Snippets Groups Projects
Commit 14ae9833 authored by Simon Künzel's avatar Simon Künzel
Browse files

Update CI

parent be275be0
No related branches found
No related tags found
No related merge requests found
Pipeline #7484 passed
trigger-production:
stage: deploy
rules:
- if: $CI_COMMIT_TAG != null
variables:
BUILD_TYPE: frontend
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
UPSTREAM_COMMIT_TAG: $CI_COMMIT_TAG
trigger:
# Pipeline B in other project can only be triggered if the user triggering this pipeline has permission to trigger B
project: videoag_infra/production
strategy: depend
test-lint:
stage: test
......@@ -25,3 +13,53 @@ test-lint:
- package-lock.json
paths:
- node_modules/
deploy-development:
stage: deploy
rules:
- if: $CI_COMMIT_TAG == null
timeout: 1h
image:
name: gcr.io/kaniko-project/executor:v1.23.2-debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- echo $CI_COMMIT_SHA
- >-
/kaniko/executor
--context=git://git.fsmpi.rwth-aachen.de/videoag/frontend.git#$CI_COMMIT_SHA
--git recurse-submodules=true
--destination=$CI_REGISTRY_IMAGE/development_frontend:$CI_COMMIT_SHA
--destination=$CI_REGISTRY_IMAGE/development_frontend:latest
--build-arg=GIT_COMMIT_SHA=$CI_COMMIT_SHA
--cache=true
--cache-repo=$CI_REGISTRY_IMAGE/development_cache
--cache-copy-layers=true
--cache-run-layers=true
--verbosity=info
deploy-production:
stage: deploy
rules:
- if: $CI_COMMIT_TAG != null
timeout: 1h
image:
name: gcr.io/kaniko-project/executor:v1.23.2-debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- echo $CI_COMMIT_SHA
- >-
/kaniko/executor
--context=git://git.fsmpi.rwth-aachen.de/videoag/frontend.git#$CI_COMMIT_SHA
--git recurse-submodules=true
--destination=$CI_REGISTRY_IMAGE/production_frontend:$CI_COMMIT_SHA
--destination=$CI_REGISTRY_IMAGE/production_frontend:$CI_COMMIT_TAG
--build-arg=GIT_COMMIT_SHA=$CI_COMMIT_SHA
--cache=true
--cache-repo=$CI_REGISTRY_IMAGE/production_cache
--cache-copy-layers=true
--cache-run-layers=true
--verbosity=info
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment