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 4
4
artifacts :
5
5
- image : fluentdemo
6
6
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}}'
10
12
tagPolicy :
11
13
gitCommit :
12
14
ignoreChanges : true # no -dirty flag
You can’t perform that action at this time.
0 commit comments