summaryrefslogtreecommitdiff
path: root/.expeditor/update_version.sh
diff options
context:
space:
mode:
authorTom Duffield <tom@chef.io>2020-07-24 13:55:01 -0500
committerTom Duffield <tom@chef.io>2020-07-28 10:54:01 -0500
commitb604456f87fe99247a4af1b97fb3ef6c6e410bf2 (patch)
tree06d9fa99c84a90cb46d310c7cf9b570c2e8a02c7 /.expeditor/update_version.sh
parent395f9f54cef1e3cb7333d4f875e4c97e9a7123b3 (diff)
downloadchef-b604456f87fe99247a4af1b97fb3ef6c6e410bf2.tar.gz
Add further clarifications to usage of docker/build pipeline
* Add the new `built_in:promote_docker_images` action * Replace `built_in:build_docker_image` with `trigger_pipeline:docker/build` * Remove unnecessary logic from Dockerfile * Add inline comment context for dobi.yaml Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to '.expeditor/update_version.sh')
-rwxr-xr-x.expeditor/update_version.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/.expeditor/update_version.sh b/.expeditor/update_version.sh
index d92c019ebb..3312cccbc0 100755
--- a/.expeditor/update_version.sh
+++ b/.expeditor/update_version.sh
@@ -11,13 +11,15 @@
set -evx
-sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" chef-config/lib/chef-config/version.rb
-sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" chef-bin/lib/chef-bin/version.rb
-sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" chef-utils/lib/chef-utils/version.rb
-sed -i -r "s/VersionString\.new\(\".+\"\)/VersionString.new(\"$(cat VERSION)\")/" lib/chef/version.rb
+VERSION=$(cat VERSION)
+
+sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"${VERSION}\"/" chef-config/lib/chef-config/version.rb
+sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"${VERSION}\"/" chef-bin/lib/chef-bin/version.rb
+sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"${VERSION}\"/" chef-utils/lib/chef-utils/version.rb
+sed -i -r "s/VersionString\.new\(\".+\"\)/VersionString.new(\"${VERSION}\")/" lib/chef/version.rb
# Update the version for the dobi
-sed -i -r "s/^(\s*)VERSION: \".+\"/\1VERSION: \"$(cat VERSION)\"/" .expeditor/build.docker.yml
+sed -i -r "s/^(\s*)VERSION: \".+\"/\1VERSION: \"${VERSION}\"/" .expeditor/build.docker.yml
# Update the version inside Gemfile.lock
bundle update chef chef-config chef-utils --jobs=7 --conservative