inspec/.expeditor/update_dockerfile.sh
kagarmoe fb2319f499 Fix main in expeditor script
Signed-off-by: kagarmoe <kgarmoe@chef.io>
2021-09-20 11:12:29 -07:00

13 lines
420 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 main 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