FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javascript-tutorial/deploy.sh at master · coder-file/javascript-tutorial · GitHub
coder-file
/
javascript-tutorial
Public
forked from
wangdoc/javascript-tutorial
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
javascript-tutorial
/
deploy.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (14 loc) · 616 Bytes
Breadcrumbs
javascript-tutorial
/
deploy.sh
Copy path
File metadata and controls
16 lines (14 loc) · 616 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!
/bin/bash
set
-e
#
Exit with nonzero exit code if anything fails
#
Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc
ENCRYPTED_KEY_VAR=
"
encrypted_
${ENCRYPTION_LABEL}
_key
"
ENCRYPTED_IV_VAR=
"
encrypted_
${ENCRYPTION_LABEL}
_iv
"
ENCRYPTED_KEY=
${
!
ENCRYPTED_KEY_VAR}
ENCRYPTED_IV=
${
!
ENCRYPTED_IV_VAR}
openssl aes-256-cbc -K
$ENCRYPTED_KEY
-iv
$ENCRYPTED_IV
-in wangdoc-deploy-rsa.enc -out wangdoc-deploy-rsa -d
chmod 600 wangdoc-deploy-rsa
eval
`
ssh-agent -s
`
ssh-add wangdoc-deploy-rsa
#
Now that we're all set up, we can push.
#
git push $SSH_REPO $TARGET_BRANCH
npm run build-and-commit
Back
|
FazBrowse Home
|
New Git URL