ci: Integrate ci-tools
This commit is contained in:
parent
fa30e53814
commit
abee504df1
23
Makefile
23
Makefile
@ -1,23 +1,6 @@
|
|||||||
VERSION ?= 1.16.0
|
VERSION ?= 1.16.0
|
||||||
REGISTRY := public.ecr.aws/zero-downtime
|
REGISTRY := public.ecr.aws/zero-downtime
|
||||||
REPOSITORY := fluentd-concenter
|
IMAGE := fluentd-concenter
|
||||||
TAG := $(REPOSITORY):v$(VERSION)
|
REGION := us-east-1
|
||||||
|
|
||||||
.PHONY: build push clean scan
|
include .ci/podman.mk
|
||||||
|
|
||||||
all: build
|
|
||||||
|
|
||||||
build:
|
|
||||||
buildah bud --build-arg version=$(VERSION) -t $(TAG) .
|
|
||||||
|
|
||||||
push:
|
|
||||||
aws ecr-public get-login-password --region us-east-1 | buildah login --username AWS --password-stdin $(REGISTRY)
|
|
||||||
buildah tag $(TAG) $(REGISTRY)/$(TAG)
|
|
||||||
buildah push $(REGISTRY)/$(TAG)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
podman rmi -f $(TAG)
|
|
||||||
|
|
||||||
scan:
|
|
||||||
podman system service&
|
|
||||||
sleep 5; trivy $(TAG)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user