-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
56 lines (44 loc) · 1.39 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
OPENSOURCE_ECR_URL = public.ecr.aws/sumologic
BIN="$(abspath $(CURDIR)/bin)/"
list-images-v4:
./scripts/list-images.py \
--fetch-base \
--values scripts/values.yaml \
--version v4
list-images-v3:
./scripts/list-images.py \
--fetch-base \
--values scripts/values.yaml \
--version v3
build-all:
ACTION=build ./scripts/build-push-all.sh
check-all:
ACTION=check ./scripts/build-push-all.sh
certify-all:
ACTION=certify ./scripts/build-push-all.sh
verify:
./scripts/get_images_sha256.sh
install_preflight:
curl -LO https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
chmod +x preflight-linux-amd64
mkdir -p ./bin/
mv preflight-linux-amd64 ./bin/preflight
make build_preflight:
mkdir -p ./bin
git clone [email protected]:redhat-openshift-ecosystem/openshift-preflight.git ./bin/preflight-git || true
# We need to build with RELEASE_TAG env
cd ./bin/preflight-git && \
export RELEASE_TAG=$$(git describe --tags $$(git rev-list --tags --max-count=1)) && \
git checkout "$${RELEASE_TAG}" && \
make build && \
mv preflight ../\
_login:
aws ecr-public get-login-password --region us-east-1 \
| docker login --username AWS --password-stdin $(ECR_URL)
login:
$(MAKE) _login \
ECR_URL="$(OPENSOURCE_ECR_URL)"
check:
${BIN}preflight check container ${IMAGE_NAME} --platform=${PLATFORM}
push:
docker push ${IMAGE_NAME}