forked from luckylittle/CopyQ-for-RHEL8
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·18 lines (18 loc) · 1.1 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# Wed 13 Nov 2024 21:22:58 UTC
COPYQ_VER=9.1.0
ARCH=x86_64
RELEASEVER=9
# Run the build
podman build -t copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH} -f Containerfile .
podman run --name copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH} copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}
# Copy the artifacts from inside the container
podman cp copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}:/root/rpmbuild/RPMS/${ARCH}/CopyQ-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}.rpm .
podman cp copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}:/root/rpmbuild/RPMS/${ARCH}/CopyQ-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}.md5 .
podman cp copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}:/root/rpmbuild/SRPMS/CopyQ-${COPYQ_VER}-1.el${RELEASEVER}.src.rpm .
podman cp copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}:/root/rpmbuild/SRPMS/CopyQ-${COPYQ_VER}-1.el${RELEASEVER}.src.md5 .
# Cleanup container & image
podman rm copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}
podman rmi copyq-${COPYQ_VER}-1.el${RELEASEVER}.${ARCH}
# Cleanup UBI9
# podman images --format "{{.ID}} {{.Repository}}" | grep registry.access.redhat.com/ubi9 | cut -d ' ' -f 1 | xargs podman rmi