inspec/.expeditor/update_dockerfile.sh
Tom Duffield 378b1d15d5
Fix the Dockerfile updating script
Normally the latest stable version would be hardcoded into the
Dockerfile, but the update_version.sh script was not updated to use
the new `EXPEDITOR_` prefixed environment variable. This fixes the
script and the Dockerfile.

Signed-off-by: Tom Duffield <tom@chef.io>
2019-08-08 09:12:24 -05:00

13 lines
422 B
Bash
Executable file

#!/bin/sh
#
# This file updates the default VERSION build argument in the Dockerfile to the
# VERSION passed in to the file via environment variables.
#
# This ensures the Dockerfile in inspec master will list the version of the latest
# stable release for any community member who wishes to build their own container
# from scratch.
#
set -evx
sed -i -r "s/^ARG VERSION=.*/ARG VERSION=${EXPEDITOR_VERSION}/" Dockerfile