Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit 742eeaf

Browse files
Birdrockdavewalter
andcommitted
Replace deplab with OCI spec image labels
Co-authored-by: Dave Walter <walterda@vmware.com>
1 parent cdfc94f commit 742eeaf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/build-images.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ function buildAndReplaceImage {
88
dockerfile=$3
99
yttValuesRef=$4
1010

11-
docker build -t $REPOSITORY/$image:latest $srcFolder -f $srcFolder/$dockerfile
12-
if [ -n "$DEPLAB" ]; then
13-
deplab --image $REPOSITORY/$image:latest --git . --output-tar /tmp/$image -t $REPOSITORY/$image:latest
14-
docker load -i /tmp/$image
15-
fi
11+
docker build -t $REPOSITORY/$image:latest $srcFolder -f $srcFolder/$dockerfile --label "org.opencontainers.image.source=https://github.com/cloudfoundry/cf-k8s-logging.git" --label "org.opencontainers.image.revision=$(git rev-parse HEAD)"
12+
1613
docker push $REPOSITORY/$image:latest
1714

1815
imageRef="$(docker image inspect $REPOSITORY/$image:latest --format '{{index .RepoDigests 0}}')"

0 commit comments

Comments
 (0)