forked from OWASP/SecurityShepherd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Closes OWASP#440 * Making sure branch is master or dev and renaming deploy script for depoly
- Loading branch information
1 parent
18523fc
commit e8cce39
Showing
6 changed files
with
144 additions
and
144 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 was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
core="docker/mysql/coreSchema.sql" | ||
module="docker/mysql/moduleSchemas.sql" | ||
|
||
sed -i 's/-- DELIMITER \$\$/DELIMITER \$\$/g' ${core} | ||
sed -i 's/-- DELIMITER \$\$/DELIMITER \$\$/g' ${module} | ||
|
||
sed -i 's/-- \$\$/\$\$/g' ${core} | ||
sed -i 's/-- \$\$/\$\$/g' ${module} | ||
|
||
sed -i 's/-- DELIMITER \;/DELIMITER \;/g' ${core} | ||
sed -i 's/-- DELIMITER \;/DELIMITER \;/g' ${module} |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Pull in the .env file | ||
if [ -f .env ] | ||
then | ||
export $(cat .env | xargs) | ||
else | ||
export $(cat ../../.env | xargs) | ||
fi | ||
|
||
# Check if its master or dev branch and deploy accordingly | ||
if [ $1 == 'master' ] | ||
then | ||
export TAG=latest | ||
|
||
docker login -u=$DOCKER_USER -p=$DOCKER_PASS | ||
docker tag $IMAGE_TOMCAT:$TAG $IMAGE_TOMCAT:$VERSION | ||
docker push $IMAGE_TOMCAT:$TAG | ||
docker push $IMAGE_TOMCAT:$VERSION | ||
elif [ $1 == 'dev' ] | ||
then | ||
export TAG=dev | ||
|
||
docker login -u=$DOCKER_USER -p=$DOCKER_PASS | ||
docker tag ${IMAGE_TOMCAT}:latest ${IMAGE_TOMCAT}:${TAG} | ||
docker push ${IMAGE_TOMCAT}:${TAG} | ||
fi |
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