Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NeqModPlus
Indriya P2
Commits
8f8c36fa
Commit
8f8c36fa
authored
Mar 10, 2021
by
Kai-Holger Brassel
Browse files
Adapt to default gitlab pages deamon
parent
5534506e
Pipeline
#2086
passed with stage
in 1 minute and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8f8c36fa
stages
:
-
build
-
deploy
variables
:
EXPORT_DIR
:
"
/var/www/html/pages"
RELEASE_DIR
:
"
release_target_211"
build-p2
:
stage
:
build
pages
:
stage
:
deploy
tags
:
-
docker
image
:
maven:3.6.3-adoptopenjdk-15
script
:
-
mvn --version
-
mvn clean install
only
:
-
master
-
mvn clean install
# build p2 repo
-
rm -rf public
-
mkdir -p "public/$RELEASE_DIR"
-
cp -r de.hft-stuttgart.indriya.p2site/target/repository/* "public/$RELEASE_DIR"
artifacts
:
paths
:
-
de.hft-stuttgart.indriya.p2site/target/repository/
expire_in
:
1 day
pages-master
:
stage
:
deploy
dependencies
:
-
build-p2
tags
:
-
production
# use special CLI runner for publishing to $EXPORT_DIR
script
:
-
rm -rf "$EXPORT_DIR/$CI_PROJECT_NAME"
-
mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME/$RELEASE_DIR"
-
cp -r de.hft-stuttgart.indriya.p2site/target/repository/* "$EXPORT_DIR/$CI_PROJECT_NAME/$RELEASE_DIR"
-
public
only
:
-
master
-
master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment