Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zukunftstadtlabor
website
Commits
a9f3266e
Commit
a9f3266e
authored
Mar 12, 2021
by
Wolfgang Knopki
Browse files
Update .gitlab-ci.yml; adapt to new pipeline
parent
40d01530
Pipeline
#6923
passed with stages
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a9f3266e
variables
:
EXPORT_DIR
:
"
/var/www/html/pages"
image
:
alpine:latest
stages
:
-
test
-
deploy
-
cleanup
test-job
:
stage
:
test
...
...
@@ -22,22 +20,13 @@ test-job:
only
:
-
master
deploy-job
:
stage
:
deploy
script
:
-
if [ -d "$EXPORT_DIR/$CI_PROJECT_NAME" ]; then rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"; fi
-
mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME"
-
cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
tags
:
-
docker
only
:
-
master
when
:
manual
cleanup-job
:
stage
:
cleanup
pages
:
stage
:
deploy
script
:
-
if [ -d "$EXPORT_DIR/$CI_PROJECT_NAME" ]; then rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"; fi
tags
:
-
docker
when
:
manual
\ No newline at end of file
-
echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
artifacts
:
paths
:
-
public
only
:
-
master
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment