Skip to content

Commit 5e363c6

Browse files
therightstuffCircleCI
andauthored
remove sudo calls from bd_to_prod.sh [skip ci] (#49)
Co-authored-by: CircleCI <no-reply@build.com>
1 parent e71a1e8 commit 5e363c6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ commands:
5252
circleci step halt
5353
fi
5454
- run: sudo chown -R circleci:circleci /usr/local/bin
55-
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
55+
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages || echo "Unable to change ownership for python3.7 site-packages"
5656

5757
# Download and cache dependencies
5858
- restore_cache:
@@ -136,7 +136,7 @@ jobs:
136136
- envs/
137137
- stack/
138138
- .aws/
139-
139+
140140
deploy:
141141
<<: *defaults
142142
steps:

scripts/bd_to_prod.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ setup_git
2626
echo "Getting latest changes from git"
2727
changes=$(git log $(git describe --tags --abbrev=0)..HEAD --oneline)
2828

29-
sudo pip install --upgrade bumpversion
3029
bumpversion patch --message "{current_version} → {new_version}. Changes: ${changes}"
3130

3231
echo "Override maven settings"
33-
sudo cp -rf maven/settings.xml /usr/share/maven/conf
32+
cp -rf maven/settings.xml /usr/share/maven/conf
3433
echo "Import gpg key"
3534
export GPG_TTY=$(tty)
3635
gpg --batch --passphrase "$GPG_PASSPHRASE" --import java-sign-keys/private.asc

0 commit comments

Comments
 (0)