Skip to content

Commit

Permalink
Merge pull request #3944 from xxx0624/dev
Browse files Browse the repository at this point in the history
Support to define image ref for csi driver image
  • Loading branch information
fierlion authored Oct 3, 2023
2 parents 3369801 + 08f1a23 commit ca33f56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ecs-agent/daemonimages/csidriver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
CSI_DRIVER_VERSION="v$(shell cat CSI_DRIVER_VERSION)"
BUILD_DATE=$(shell date -u -Iseconds)
GO_VERSION=$(shell cat ../../../GO_VERSION)
IMAGE_REF?="ebs-csi-driver:latest"

all: tarfiles/ebs-csi-driver.tar

Expand All @@ -25,16 +26,16 @@ bin/ebs-csi-driver:
-o bin/ebs-csi-driver .

image:
docker build --build-arg GO_VERSION=$(GO_VERSION) -t ebs-csi-driver:latest .
docker build --build-arg GO_VERSION=$(GO_VERSION) -t $(IMAGE_REF) .

tarfiles/ebs-csi-driver.tar: image
mkdir -p tarfiles
docker save "ebs-csi-driver:latest" > tarfiles/ebs-csi-driver.tar
docker save $(IMAGE_REF) > tarfiles/ebs-csi-driver.tar

mockgen:
./update-gomock

clean:
-docker rmi -f "ebs-csi-driver:latest"
-docker rmi -f $(IMAGE_REF)
-rm -rf tarfiles/
-rm -rf bin/

0 comments on commit ca33f56

Please sign in to comment.