Merged in feature/ecr (pull request #159)
Test * tests * tar * go * tmp * test * go * go * go * config * goup * versioning * order * cleanup * git * smallopts * flags * lessisgood * go * order * ordermatters * order * cc * test
This commit is contained in:
+9
-2
@@ -5,6 +5,10 @@ version: "3"
|
||||
|
||||
vars:
|
||||
DOCKERFILE: "build/Dockerfile"
|
||||
GIT_VERSION:
|
||||
sh: git describe --tags --always --dirty
|
||||
GIT_COMMIT:
|
||||
sh: git rev-parse HEAD
|
||||
|
||||
tasks:
|
||||
lint:
|
||||
@@ -12,5 +16,8 @@ tasks:
|
||||
- hadolint {{.DOCKERFILE}} -t none
|
||||
build:
|
||||
run: once
|
||||
cmds:
|
||||
- docker build -t {{.IMAGE_NAME}} -f {{.DOCKERFILE}} .
|
||||
cmd: |
|
||||
docker build \
|
||||
--build-arg "GIT_VERSION={{.GIT_VERSION}}" \
|
||||
--build-arg "GIT_COMMIT={{.GIT_COMMIT}}" \
|
||||
-t {{.IMAGE_NAME}} -f {{.DOCKERFILE}} .
|
||||
|
||||
Reference in New Issue
Block a user