summaryrefslogtreecommitdiff
path: root/.expeditor/update_dockerfile.sh
blob: a9d266ff74e33333822f53d42283eba1960f456d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

############################################################################
# What is this script?
#
# Chef uses a workflow tool called Expeditor to manage version bumps, changelogs
# and releases. When the current release of Chef is promoted to stable this script
# is run by Expeditor to update the version in the Dockerfile to match the stable
# release.
############################################################################

set -evx

sed -i -r "s/^ARG VERSION=.+/ARG VERSION=${EXPEDITOR_VERSION}/" Dockerfile