This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 3031e840 authored by Eduard Frankford's avatar Eduard Frankford
Browse files

testing

parent a23a31ac
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
...@@ -113,7 +113,28 @@ frontend-test: ...@@ -113,7 +113,28 @@ frontend-test:
- export MAVEN_USER_HOME=`pwd`/.maven - export MAVEN_USER_HOME=`pwd`/.maven
- npm ci --cache .npm --prefer-offline - npm ci --cache .npm --prefer-offline
# Uncomment the following line to use gitlabs container registry. You need to adapt the REGISTRY_URL in case you are not using gitlab.com # deploy:
# stage: release
# cache: []
# only:
# refs:
# - development
# dependencies:
# - docker-push
# - maven-test
# - frontend-test
# before_script:
# - mkdir -p ~/.ssh
# - echo "${SSH_BKY_DEPLOY}" > ~/.ssh/id_rsa
# - chmod 700 ~/.ssh/id_rsa
# - eval "$(ssh-agent -s)"
# - ssh-add ~/.ssh/id_rsa
# - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
# script:
# - ssh contDeploy@codeability-austria -p 1022 "cd /home/michael/gitsearch && git pull && ./mvnw -Dmaven.test.failure.ignore=true package jib:dockerBuild"
# when: on_success
# This pipeline step does not work with nfs file system
docker-push: docker-push:
stage: release stage: release
cache: [] cache: []
...@@ -124,12 +145,13 @@ docker-push: ...@@ -124,12 +145,13 @@ docker-push:
REGISTRY_URL: sharing-codeability.uibk.ac.at:5051 REGISTRY_URL: sharing-codeability.uibk.ac.at:5051
IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform
script: script:
- ./mvnw package -Pprod verify -DskipTests jib:build -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME - ./mvnw verify -Pprod -DskipTests jib:build -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME
when: on_success when: on_success
before_script: before_script:
- export NG_CLI_ANALYTICS="false" - export NG_CLI_ANALYTICS="false"
- export MAVEN_USER_HOME=`pwd`/.maven - export MAVEN_USER_HOME=`pwd`/.maven
- npm ci --cache .npm --prefer-offline - npm ci --cache .npm --prefer-offline
# deploy: # deploy:
# stage: deploy # stage: deploy
# cache: [] # cache: []
......
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