Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Tabu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dennis Willers
Tabu
Commits
c2a1a01c
Commit
c2a1a01c
authored
Dec 27, 2020
by
Dennis Willers
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init Gitlab-Ci.yml
parent
d5b19664
Pipeline
#262
failed with stages
in 4 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
.gitlab-ci.yml
.gitlab-ci.yml
+32
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
c2a1a01c
build
:
stage
:
build
image
:
trion/ng-cli
before_script
:
-
npm i
-
npm ci
script
:
-
ng build --subresource-integrity --prod
artifacts
:
expire_in
:
1 day
paths
:
-
dist/
tags
:
-
docker
deploy-master
:
stage
:
deploy
image
:
tetraweb/php:7.1
before_script
:
-
"
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)"
-
mkdir -p ~/.ssh
-
eval $(ssh-agent -s)
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
-
ssh-add <(echo "$STAGING_PRIVATE_KEY")
script
:
-
ssh root@willers.digital -p 2233 "mkdir -p /volume1/web/_tmp"
-
ssh root@willers.digital -p 2233 "mkdir -p /volume1/web/alt"
-
scp -P2233 -r dist/tabu/* root@willers.digital:/volume1/web/_tmp
-
ssh -p 2233 root@willers.digital "mv /volume1/web/tabu/* /volume1/web/alt && mv /volume1/web/_tmp/* /volume1/web/tabu"
-
ssh -p 2233 root@willers.digital "rm -rf /volume1/web/alt"
only
:
-
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