Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Koukofikis
myraw
Commits
0c04faa9
You need to sign in or sign up before continuing.
Commit
0c04faa9
authored
Mar 12, 2021
by
Wolfgang Knopki
Browse files
Update .gitlab-ci.yml
parent
95288503
Pipeline
#3008
passed with stages
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0c04faa9
variables
:
image
:
alpine:latest
EXPORT_DIR
:
"
/var/www/html/pages"
stages
:
stages
:
-
test
-
test
-
deploy
-
deploy
-
cleanup
test-job
:
test-job
:
stage
:
test
stage
:
test
...
@@ -22,22 +20,12 @@ test-job:
...
@@ -22,22 +20,12 @@ test-job:
only
:
only
:
-
master
-
master
deploy-job
:
pages
:
stage
:
deploy
stage
:
deploy
script
:
script
:
-
if [ -d "$EXPORT_DIR/$CI_PROJECT_NAME" ]; then rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"; fi
-
echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
-
mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME"
artifacts
:
-
cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
paths
:
tags
:
-
public
-
docker
only
:
only
:
-
master
-
master
when
:
manual
cleanup-job
:
stage
:
cleanup
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
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