This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
b756b349
Commit
b756b349
authored
2 years ago
by
Eduard Frankford
Browse files
Options
Downloads
Patches
Plain Diff
testing
parent
a83208fe
Branches
Branches containing commit
2 merge requests
!188
Merging Peer Reviewing et. al to Master
,
!164
211 peer reviewing functionality
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+44
-44
44 additions, 44 deletions
.gitlab-ci.yml
with
44 additions
and
44 deletions
.gitlab-ci.yml
+
44
−
44
View file @
b756b349
...
@@ -9,11 +9,11 @@ stages:
...
@@ -9,11 +9,11 @@ stages:
# - lint
# - lint
# - build
# - build
# - test
# - test
#
- e2e
-
e2e
# - analyze
# - analyze
# - package
# - package
-
release
#
- release
-
deploy
#
- deploy
before_script
:
before_script
:
-
export NG_CLI_ANALYTICS="false"
-
export NG_CLI_ANALYTICS="false"
...
@@ -102,18 +102,18 @@ before_script:
...
@@ -102,18 +102,18 @@ before_script:
# expire_in: 15 days
# expire_in: 15 days
# needs: []
# needs: []
#
e2e-test:
e2e-test
:
#
services:
services
:
#
- selenium/standalone-chrome
-
selenium/standalone-chrome
#
image: node
image
:
node
#
stage: e2e
stage
:
e2e
#
cache: {}
cache
:
{}
#
dependencies:
dependencies
:
#
- frontend-test
-
frontend-test
#
script:
script
:
#
- apt-get install default-jre
-
apt-get install default-jre
#
- apt-get -f install
-
apt-get -f install
#
- npm run e2e
-
npm run e2e
# sonar-analyze:
# sonar-analyze:
# stage: analyze
# stage: analyze
# dependencies:
# dependencies:
...
@@ -130,33 +130,33 @@ before_script:
...
@@ -130,33 +130,33 @@ before_script:
# - ./mvnw -ntp verify -Pprod -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME
# - ./mvnw -ntp verify -Pprod -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME
# Uncomment the following line to use gitlabs container registry. You need to adapt the REGISTRY_URL in case you are not using gitlab.com
# Uncomment the following line to use gitlabs container registry. You need to adapt the REGISTRY_URL in case you are not using gitlab.com
docker-push
:
#
docker-push:
stage
:
release
#
stage: release
variables
:
#
variables:
# only:
#
# only:
# refs:
#
# refs:
# - development
#
# - development
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 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
when
:
always
#
when: always
deploy
:
#
deploy:
stage
:
deploy
#
stage: deploy
dependencies
:
#
dependencies:
-
'
docker-push'
#
- 'docker-push'
image
:
ubuntu:20.04
#
image: ubuntu:20.04
before_script
:
#
before_script:
-
apt-get update -qy
#
- apt-get update -qy
-
apt-get install -y rsync openssh-client
#
- apt-get install -y rsync openssh-client
-
mkdir -p ~/.ssh
#
- mkdir -p ~/.ssh
-
echo "${SSH_BKY_DEPLOY}" > ~/.ssh/id_rsa
#
- echo "${SSH_BKY_DEPLOY}" > ~/.ssh/id_rsa
-
chmod 700 ~/.ssh/id_rsa
#
- chmod 700 ~/.ssh/id_rsa
-
eval "$(ssh-agent -s)"
#
- eval "$(ssh-agent -s)"
-
ssh-add ~/.ssh/id_rsa
#
- ssh-add ~/.ssh/id_rsa
-
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
#
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script
:
#
script:
-
whoami
#
- whoami
-
ssh contDeploy@codeability-austria -p 1022 "cd /home/michael/gitsearch && git pull && cd src/main/docker/ && docker pull sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform && GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up -d --no-deps --build --force-recreate gitsearch-app && exit"
#
- ssh contDeploy@codeability-austria -p 1022 "cd /home/michael/gitsearch && git pull && cd src/main/docker/ && docker pull sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform && GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up -d --no-deps --build --force-recreate gitsearch-app && exit"
when
:
always
#
when: always
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment