Squashed '.ci/' changes from dc2c208..49ea8c8
49ea8c8 feat: Add support for custom EXTRA_TAGS git-subtree-dir: .ci git-subtree-split: 49ea8c8779fc5939576f80b9a2e25485b10d9cba
This commit is contained in:
parent
71f4de5a99
commit
770968c49d
@ -12,7 +12,6 @@ endif
|
|||||||
|
|
||||||
all: test
|
all: test
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@docker image exists $(REGISTRY)/$(IMAGE):$(TAG) || \
|
@docker image exists $(REGISTRY)/$(IMAGE):$(TAG) || \
|
||||||
docker build --rm -t $(REGISTRY)/$(IMAGE):$(TAG) --build-arg TAG=$(TAG) .
|
docker build --rm -t $(REGISTRY)/$(IMAGE):$(TAG) --build-arg TAG=$(TAG) .
|
||||||
@ -29,9 +28,7 @@ scan: build
|
|||||||
|
|
||||||
push: build
|
push: build
|
||||||
@aws ecr-public get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(REGISTRY)
|
@aws ecr-public get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(REGISTRY)
|
||||||
@docker tag $(IMAGE):$(TAG) $(REGISTRY)/$(IMAGE):$(TAG) $(REGISTRY)/$(IMAGE):latest
|
@for t in $(TAG) latest $(EXTRA_TAGS); do echo "tag and push: $$t"; docker tag $(IMAGE):$(TAG) $(REGISTRY)/$(IMAGE):$$t && docker push $(REGISTRY)/$(IMAGE):$$t; done
|
||||||
docker push $(REGISTRY)/$(IMAGE):$(TAG)
|
|
||||||
docker push $(REGISTRY)/$(IMAGE):latest
|
|
||||||
|
|
||||||
clean: rm-test-image rm-image
|
clean: rm-test-image rm-image
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user