Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Boddie
developer.puri.sm
Commits
a30b92d6
Commit
a30b92d6
authored
Oct 04, 2019
by
Jeremiah Foster
⚡
Browse files
Merge branch 'master' of source.puri.sm:jeremiah.foster/developer.puri.sm
in order to revert bad commit.
parents
fbabbec9
570faf13
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a30b92d6
stages
:
-
build
-
deploy
build_html
:
stage
:
build
...
...
@@ -18,26 +17,3 @@ build_html:
-
_build/html
expire_in
:
1 week
publish
:
stage
:
deploy
environment
:
name
:
production
url
:
https://developer.puri.sm/Librem5/
before_script
:
-
export DEBIAN_FRONTEND=noninteractive
-
apt-get -y update
-
apt-get -y install ssh rsync
tags
:
-
librem5
script
:
# Don't publish in forks
-
'
[
"$CI_PROJECT_NAMESPACE"
==
"Librem5"
]
||
exit
0'
-
mkdir -p ~/.ssh/
-
chmod 0700 ~/.ssh/
-
echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts
-
touch ~/.ssh/id_rsa
-
chmod 0600 ~/.ssh/id_rsa
-
echo "$SSH_KEY" >> ~/.ssh/id_rsa
-
rsync -av -I -t -i --stats -e "ssh -l $SSH_USER -i ~/.ssh/id_rsa -p $SSH_PORT" _build/html/ "$RSYNC_TARGET"
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