mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
14 lines
412 B
Bash
14 lines
412 B
Bash
|
#!/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=${VERSION}/" Dockerfile
|