File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,21 @@ set -xeu
5
5
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
6
6
INTEGRATION_TEST_DIR=" $SCRIPT_DIR /../integration-tests/"
7
7
8
+ LABEL_DATE=$( date -u +' %Y-%m-%dT%H:%M:%S.%3NZ' )
9
+ LABEL_URL=" https://github.com/goss-org/goss"
10
+ LABEL_REVISION=$( git rev-parse HEAD)
8
11
9
12
for docker_file in $INTEGRATION_TEST_DIR /Dockerfile_* ; do
10
13
[[ $docker_file == * .md5 ]] && continue
11
14
os=$( cut -d ' _' -f2 <<< " $docker_file" )
12
- docker build -t " aelsabbahy/goss_${os} :latest" - < " $docker_file "
15
+ docker build \
16
+ --label " org.opencontainers.image.created=$LABEL_DATE " \
17
+ --label " org.opencontainers.image.description=Quick and Easy server testing/validation" \
18
+ --label " org.opencontainers.image.licenses=Apache-2.0" \
19
+ --label " org.opencontainers.image.revision=$LABEL_REVISION " \
20
+ --label " org.opencontainers.image.source=$LABEL_URL " \
21
+ --label " org.opencontainers.image.title=goss" \
22
+ --label " org.opencontainers.image.url=$LABEL_URL " \
23
+ --label " org.opencontainers.image.version=manual" \
24
+ -t " aelsabbahy/goss_${os} :latest" - < " $docker_file "
13
25
done
You can’t perform that action at this time.
0 commit comments