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

Add CI testing

parent 3843fbde
No related branches found
No related tags found
No related merge requests found
Pipeline #5861 failed
trigger-production:
stage: build
stage: deploy
rules:
- if: $CI_COMMIT_BRANCH == "live_production"
variables:
......@@ -9,3 +9,24 @@ trigger-production:
# 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
build-image:
stage: build
timeout: 30m
image:
name: gcr.io/kaniko-project/executor:v1.23.0-debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE/videoag_api_testing:$CI_COMMIT_TAG
run-tests:
stage: test
timeout: 30m
variables:
VIDEOAG_API_CONFIG: $CI_PROJECT_DIR/config/api_example_config
image:
name: registry.git.fsmpi.rwth-aachen.de/videoag/backend_api/videoag_api_testing:$CI_COMMIT_TAG
entrypoint: [""]
script:
- $CI_PROJECT_DIR/docker_start.sh -test
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment