Squashed '.ci/' changes from d67a80e..a392836
a392836 feat: migrate all buildah cmds to podman only git-subtree-dir: .ci git-subtree-split: a3928364782156003f828ee4639d12b51bb5d9d9
This commit is contained in:
parent
9a4900f7eb
commit
e08d7906bc
12
podman.mk
12
podman.mk
@ -43,7 +43,7 @@ fmt:: ## auto format source
|
|||||||
lint:: ## Lint source
|
lint:: ## Lint source
|
||||||
|
|
||||||
build: ## Build the app
|
build: ## Build the app
|
||||||
buildah build --rm --layers -t $(IMAGE):$(TAG)-$(_ARCH) --build-arg TAG=$(TAG) --build-arg ARCH=$(_ARCH) --platform linux/$(_ARCH) .
|
podman build --rm --layers -t $(IMAGE):$(TAG)-$(_ARCH) --build-arg TAG=$(TAG) --build-arg ARCH=$(_ARCH) --platform linux/$(_ARCH) .
|
||||||
|
|
||||||
test:: ## test built artificats
|
test:: ## test built artificats
|
||||||
|
|
||||||
@ -56,15 +56,15 @@ scan: ## Scan image using trivy
|
|||||||
push: ecr-login ## push images to registry
|
push: ecr-login ## push images to registry
|
||||||
for t in $(TAG) latest $(EXTRA_TAGS); do
|
for t in $(TAG) latest $(EXTRA_TAGS); do
|
||||||
echo "Tagging image with $(REGISTRY)/$(IMAGE):$${t}-$(ARCH)"
|
echo "Tagging image with $(REGISTRY)/$(IMAGE):$${t}-$(ARCH)"
|
||||||
buildah tag $(IMAGE):$(TAG)-$(_ARCH) $(REGISTRY)/$(IMAGE):$${t}-$(_ARCH)
|
podman tag $(IMAGE):$(TAG)-$(_ARCH) $(REGISTRY)/$(IMAGE):$${t}-$(_ARCH)
|
||||||
buildah manifest rm $(IMAGE):$$t || true
|
podman manifest rm $(IMAGE):$$t || true
|
||||||
buildah manifest create $(IMAGE):$$t
|
podman manifest create $(IMAGE):$$t
|
||||||
for a in $(ALL_ARCHS); do
|
for a in $(ALL_ARCHS); do
|
||||||
podman image exists $(REGISTRY)/$(IMAGE):$$t-$$a && \
|
podman image exists $(REGISTRY)/$(IMAGE):$$t-$$a && \
|
||||||
buildah manifest add $(IMAGE):$$t $(REGISTRY)/$(IMAGE):$$t-$$a
|
podman manifest add $(IMAGE):$$t containers-storage:$(REGISTRY)/$(IMAGE):$$t-$$a
|
||||||
done
|
done
|
||||||
echo "Pushing manifest $(IMAGE):$$t"
|
echo "Pushing manifest $(IMAGE):$$t"
|
||||||
buildah manifest push --all $(IMAGE):$$t docker://$(REGISTRY)/$(IMAGE):$$t
|
podman manifest push --all $(IMAGE):$$t docker://$(REGISTRY)/$(IMAGE):$$t
|
||||||
done
|
done
|
||||||
|
|
||||||
ecr-login: ## log into AWS ECR public
|
ecr-login: ## log into AWS ECR public
|
||||||
|
Loading…
Reference in New Issue
Block a user