Skip to content

Commit

Permalink
OIDC role and dependency upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rrigato committed Apr 20, 2024
1 parent bff3e5a commit 9b06aea
Show file tree
Hide file tree
Showing 2 changed files with 1,012 additions and 817 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"
Loading

0 comments on commit 9b06aea

Please sign in to comment.