Skip to content

Commit

Permalink
modified: Dockerfile, Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: ddukbg <[email protected]>
  • Loading branch information
ddukbg committed Oct 24, 2024
1 parent 1377b91 commit cc5087d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build stage
# Go 버전 업데이트
FROM golang:1.20 as builder
FROM golang:1.22.1 as builder

WORKDIR /workspace
# 캐시 활용을 위해 go.mod와 go.sum을 먼저 복사
Expand Down
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,23 @@ generate: controller-gen
manifests: controller-gen
$(CONTROLLER_GEN) crd paths="./..." output:crd:artifacts:config=config/crd/bases

# Docker 관련 타겟
.PHONY: docker-build
docker-build:
docker build -t ${IMG}:${IMG_TAG} .
docker build -t $(IMG) .

.PHONY: docker-push
docker-push:
docker push ${IMG}:${IMG_TAG}
docker push $(IMG)

# 버전 태그 추가
.PHONY: docker-tag
docker-tag:
docker tag $(IMG) $(IMG):$(VERSION)

# 모든 Docker 작업 실행
.PHONY: docker-all
docker-all: docker-build docker-tag docker-push

.PHONY: install
install:
Expand Down

0 comments on commit cc5087d

Please sign in to comment.