Commit c9edab4 1 parent ecd5c84 commit c9edab4 Copy full SHA for c9edab4
File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -e
3
+
4
+ #
5
+ # Script for updating this project's RubyGems to the latest versions by running `bundle install`
6
+ # and committing and pushing the regenerated Gemfile.lock files to GitHub.
7
+ #
8
+ # Usage: update-rubygems.sh
9
+ #
10
+ # Author: John Topley (john.topley@ons.gov.uk)
11
+ #
12
+ echo " Regenerating parent-image/Gemfile.lock..."
13
+ cd ./parent-image
14
+ rm Gemfile.lock
15
+ bundle install
16
+
17
+ git add Gemfile.lock
18
+ git commit -m " Updated dependencies"
19
+ git push
20
+
21
+ echo " Waiting 5 minutes for Cloud Build pipeline to build webapp-parent-image..."
22
+ sleep 300
23
+
24
+ cd ./app
25
+ rm Gemfile.lock
26
+ bundle install
27
+
28
+ echo " Regenerating app/Gemfile.lock..."
29
+ git add Gemfile.lock
30
+ git commit -m " Updated dependencies"
31
+ git push
32
+
33
+ echo " Finished!"
You can’t perform that action at this time.
0 commit comments