File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ cd $( dirname $0 )
5+
6+ # https://github.com/moby/moby/issues/42845
7+ export DOCKER_BUILDKIT=0
8+
9+ export GIT_VERSION=" $( git describe --tags --abbrev=0) @$( git rev-parse HEAD) "
10+ docker build --pull --progress=tty --build-arg " GIT_VERSION=$GIT_VERSION " -t " $IMAGE " " $BUILD_CONTEXT "
11+
12+ if $PUSH_IMAGE ; then
13+ docker push $IMAGE
14+ fi
Original file line number Diff line number Diff line change 44 artifacts :
55 - image : fluentdemo
66 context : .
7- docker :
8- buildArgs :
9- GIT_VERSION : ' {{if .IMAGE_TAG}}{{.IMAGE_TAG}}{{else}}0.0.0dev0{{end}}'
7+ custom :
8+ buildCommand : sh skaffold-builder.sh
9+ # docker:
10+ # buildArgs:
11+ # GIT_VERSION: '{{if .IMAGE_TAG}}{{.IMAGE_TAG}}{{else}}0.0.0dev0{{end}}'
1012 tagPolicy :
1113 gitCommit :
1214 ignoreChanges : true # no -dirty flag
You can’t perform that action at this time.
0 commit comments