mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
378b1d15d5
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>
13 lines
422 B
Bash
Executable file
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
|