Skip to content

Commit

Permalink
fix: make image using Dockerfile.dev works (#1296)
Browse files Browse the repository at this point in the history
Signed-off-by: Mehmet Hatip <mbhatip@gmail.com>
  • Loading branch information
mbhatip authored Jul 14, 2021
1 parent c6d7ff0 commit 4a7978f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# argo-rollouts-dev
####################################################################################################
FROM scratch
COPY dist/rollouts-controller-linux-amd64 /bin/rollouts-controller
COPY rollouts-controller-linux-amd64 /bin/rollouts-controller
ENTRYPOINT [ "/bin/rollouts-controller" ]
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ builder-image:
image:
ifeq ($(DEV_IMAGE), true)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -i -ldflags '${LDFLAGS}' -o ${DIST_DIR}/rollouts-controller-linux-amd64 ./cmd/rollouts-controller
docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) -f Dockerfile.dev .
docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) -f Dockerfile.dev ${DIST_DIR}
else
docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) .
endif
Expand Down Expand Up @@ -282,4 +282,4 @@ release-plugins:
./hack/build-release-plugins.sh

.PHONY: release
release: release-precheck precheckin image plugin-image release-plugins
release: release-precheck precheckin image plugin-image release-plugins

0 comments on commit 4a7978f

Please sign in to comment.