Skip to content

Commit

Permalink
chore: fix image push (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Nov 30, 2018
1 parent 22e0f7b commit 76b6d7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
*
!cmd
!go.mod
!go.sum
!hack
!main.go
!pkg
!scripts
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ AUTH_CONFIG ?= $(HOME)/.kaniko/config.json
SHA := $(shell gitmeta git sha)
TAG := $(shell gitmeta image tag)
BUILT := $(shell gitmeta built)
PUSH := $(shell gitmeta image pushable --negate)

EXECUTOR_ARGS := --context=/workspace --cache=true --cache-dir=/cache --cleanup
EXECUTOR_VOLUMES := --volume $(AUTH_CONFIG):/kaniko/.docker/config.json:ro --volume $(PWD)/cache:/cache --volume $(PWD)/build:/build
Expand All @@ -28,8 +29,9 @@ conform: cache
--dockerfile=Dockerfile \
--cache-repo=$(REPO)/$@ \
--destination=$(REPO)/$@:$(TAG) \
--destination=$(REPO)/$@:latest \
--single-snapshot \
--no-push \
--no-push=$(PUSH) \
--build-arg GOLANG_IMAGE=$(GOLANG_IMAGE) \
--build-arg SHA=$(SHA) \
--build-arg TAG=$(TAG) \
Expand Down

0 comments on commit 76b6d7a

Please sign in to comment.