Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Muddsair Sharif
AkustikiMobi
Commits
ba62fb46
Commit
ba62fb46
authored
3 years ago
by
Athanasios
Browse files
Options
Download
Email Patches
Plain Diff
add CI configuration
parent
5da941ee
Pipeline
#3357
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+41
-0
.gitlab-ci.yml
with
41 additions
and
0 deletions
+41
-0
.gitlab-ci.yml
0 → 100644
+
41
-
0
View file @
ba62fb46
variables
:
EXPORT_DIR
:
"
/var/www/html/pages"
stages
:
-
test
-
deploy
-
cleanup
test-job
:
stage
:
test
script
:
-
echo "Testing files exist..."
-
test -f public/index.html
-
test -f public/main.js
-
test -f public/settings.js
-
test -f public/assets/css/style.css
-
test -f public/assets/css/moblie.css
-
test -f public/assets/images/header.jpg
-
test -f public/home/index.html
-
echo "Test finished, all ok"
only
:
-
master
deploy-job
:
stage
:
deploy
script
:
-
mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME"
-
cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
tags
:
-
production
only
:
-
master
when
:
manual
cleanup-job
:
stage
:
cleanup
script
:
-
rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"
tags
:
-
production
when
:
manual
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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