Skip to content

Commit

Permalink
Merge pull request #43 from rrigato/dev
Browse files Browse the repository at this point in the history
OIDC role and frontend dependency upgrades
  • Loading branch information
rrigato authored Apr 20, 2024
2 parents 9b0e01a + 9b06aea commit fc83663
Show file tree
Hide file tree
Showing 4 changed files with 1,037 additions and 795 deletions.
30 changes: 22 additions & 8 deletions scripts/app_deployment.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
#! /bin/bash

#exits program immediately if a command is not sucessful
set -e

if [ -z "$1" ]; then
echo "Missing commit message arguement 1"
exit 1
fi


git add -A

git commit -m "$1"


source avenv/bin/activate

secret_scan_results=$(detect-secrets scan | \
Expand All @@ -14,13 +23,18 @@ if [ "${secret_scan_results}" != "{}" ]; then
exit 125
fi

deactivate

git secrets --scan
git push origin dev

if [ $? != 0 ]; then
echo "git-secrets scan failed"
exit 125
fi
echo "pushed to remote"

gh pr create --title "$1" \
--body "Automated PR creation" \
--head dev \
--base master

echo "created PR"

git push origin dev
echo "----------------------"
echo "deployment successful"
1 change: 1 addition & 0 deletions static/css/homepageSection.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ul{
background-color: #aaaaaa;
border-radius: 5%;
color:black;
height: 800px;
max-width: 750px;
}

Loading

0 comments on commit fc83663

Please sign in to comment.