Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
schdesign web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schdesign
schdesign web
Commits
5cb25989
Commit
5cb25989
authored
Oct 8, 2020
by
Robotka István Adrián
Browse files
Options
Downloads
Patches
Plain Diff
add ci config
parent
5ed8d7cf
Branches
Branches containing commit
No related tags found
2 merge requests
!3
CI
,
!2
add ci config
Pipeline
#5290
failed
Oct 8, 2020
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+69
-0
69 additions, 0 deletions
.gitlab-ci.yml
with
69 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
69
−
0
View file @
5cb25989
# Ordering stages and jobs
stages
:
-
build
-
test
-
deploy
cache
:
key
:
$CI_COMMIT_REF_SLUG
paths
:
-
node_modules/
build
:
stage
:
build
image
:
node:14
script
:
-
npm ci
-
CI=false npm run build
artifacts
:
expire_in
:
1 week
paths
:
-
build/
editorconfig
:
stage
:
build
image
:
name
:
odannyc/eclint
entrypoint
:
[
"
"
]
dependencies
:
[]
# job can start immediately
allow_failure
:
true
script
:
-
eclint check $(git ls-files)
# hidden job template, not gonna run
.ftp
:
stage
:
deploy
image
:
ubuntu:focal
variables
:
#ENV: must_be_filled
HOST
:
"
${FTP_HOST_$ENV}"
USER
:
"
${FTP_USER_$ENV}"
PASS
:
"
${FTP_PASS_$ENV}"
script
:
-
apt-get update && apt-get install -y lftp ca-certificates
-
|
FTP_CMD="lftp -e \"set dns:order 'inet inet6';
mirror -R site/ public/ ; quit\"
-u $FTP_USER,$FTP_PASS $FTP_HOST"
-
echo "$FTP_CMD"
-
$FTP_CMD
except
:
-
tags
ftp-prod
:
extends
:
.ftp
environment
:
url
:
https://schdesign.hu/
variables
:
ENV
:
prod
only
:
-
master
ftp-staging
:
extends
:
.ftp
environment
:
url
:
https://kiscica.schdesign.hu/
variables
:
ENV
:
staging
only
:
-
ci
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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