-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 918 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 918 Bytes
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
# Image URL to use all building/pushing image targets
REPOSITORY ?= $(REGISTRY)/eformat/web-terminal
REGISTRY ?= quay.io
IMG := $(REPOSITORY):latest
VERSION := 3.0.0
# podman Login
podman-login:
@podman login -u $(PODMAN_USER) -p $(PODMAN_PASSWORD) $(REGISTRY)
# Tag for Dev
podman-tag-release:
@podman tag $(IMG) $(REPOSITORY):$(VERSION)
@podman tag $(REPOSITORY):$(VERSION) $(REPOSITORY):latest
# Push for Release
podman-push-release: podman-tag-release
@podman push $(REPOSITORY):$(VERSION)
@podman push $(REPOSITORY):latest
# Build the podman image
podman-build:
podman build --secret id=RHEL_RHSM_USERNAME,env=RHEL_RHSM_USERNAME --secret id=RHEL_RHSM_PASSWORD,env=RHEL_RHSM_PASSWORD --platform linux/amd64 . -t $(IMG) -t $(IMG)-x86_64 -f Containerfile
# Push the podman image
podman-push: podman-build
podman push ${IMG}
podman push ${IMG}-x86_64
podman-push-all: podman-build podman-push-release