-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
npm ci publish fix npm publish requires lint and tests deploy.sh cleanup
- Loading branch information
Showing
9 changed files
with
119 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# If not staging or master branch are existing | ||
export TAG="$CIRCLE_BRANCH" | ||
|
||
if [ "$CIRCLE_BRANCH" == "staging" ]; then | ||
export TAG='latest' | ||
export REPO_PATH='/home/sourcify/staging/' | ||
# Do ssh to server | ||
ssh -o "StrictHostKeyChecking no" [email protected] "\ | ||
mkdir -p scripts && curl https://raw.githubusercontent.com/ethereum/source-verify/${CIRCLE_BRANCH}/scripts/setup.sh > scripts/setup.sh && chmod +x scripts/setup.sh && chown $USER:$USER ./scripts/setup.sh && \ | ||
REPO_PATH='${REPO_PATH}' CIRCLE_BRANCH='${CIRCLE_BRANCH}' TAG='${TAG}' ./scripts/setup.sh" | ||
TAG='latest' | ||
REPO_PATH='/home/sourcify/staging/' | ||
SERVER='[email protected]' | ||
elif [ "$CIRCLE_BRANCH" == "master" ]; then | ||
TAG='stable' | ||
REPO_PATH='/opt/source-verify/production/' | ||
SERVER='[email protected]' | ||
else | ||
echo "Invalid branch $CIRCLE_BRANCH. Check your config.yml" | ||
exit 1 | ||
fi | ||
|
||
if [ "$CIRCLE_BRANCH" == "master" ]; then | ||
export TAG='stable' | ||
export REPO_PATH='/opt/source-verify/production/' | ||
# Do ssh to server | ||
ssh -o "StrictHostKeyChecking no" [email protected] "\ | ||
ssh -o "StrictHostKeyChecking no" $SERVER "\ | ||
mkdir -p scripts && curl https://raw.githubusercontent.com/ethereum/source-verify/${CIRCLE_BRANCH}/scripts/setup.sh > scripts/setup.sh && chmod +x scripts/setup.sh && chown $USER:$USER ./scripts/setup.sh && \ | ||
REPO_PATH='${REPO_PATH}' CIRCLE_BRANCH='${CIRCLE_BRANCH}' TAG='${TAG}' ./scripts/setup.sh" | ||
fi | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.