Skip to content

Commit 1260767

Browse files
authored
Kaniko - Add image tag to Kaniko's output file (jfrog#250)
1 parent aba4d86 commit 1260767

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

kaniko-example/README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ This is an example showing how to collect build-info, while using the Kaniko con
3030

3131
```console
3232
Run Kaniko:
33-
> docker run --rm -v `pwd`:/workspace -v `pwd`/config.json:/kaniko/.docker/config.json:ro gcr.io/kaniko-project/executor:latest --dockerfile=Dockerfile --destination=DOCKER_REG_URL/hello-world:latest --image-name-with-digest-file=image-file-details
33+
> export IMAGE_TAG=latest
34+
> docker run --rm -v `pwd`:/workspace -v `pwd`/config.json:/kaniko/.docker/config.json:ro gcr.io/kaniko-project/executor:$IMAGE_TAG --dockerfile=Dockerfile --destination=DOCKER_REG_URL/hello-world:latest --image-name-with-digest-file=image-file-details
35+
36+
Add the image tag to 'image-file-details':
37+
> sed -i 's/@/:'$IMAGE_TAG'@/g' image-file-details
38+
On macOS, use:
39+
> sed -i '' 's/@/:'$IMAGE_TAG'@/g' image-file-details
3440

3541
Configure Artifactory:
3642
> jfrog rt c

0 commit comments

Comments
 (0)