diff --git a/tekton/flightctl-image/Containerfile b/tekton/flightctl-image/Containerfile new file mode 100644 index 0000000..88cc0f4 --- /dev/null +++ b/tekton/flightctl-image/Containerfile @@ -0,0 +1,15 @@ +FROM registry.access.redhat.com/ubi9/ubi:latest + +RUN < /etc/dnf/plugins/subscription-manager.conf +echo "Installing flightctl..." +curl -sSfL -o /etc/yum.repos.d/flightctl-copr.repo https://copr.fedorainfracloud.org/coprs/g/redhat-et/flightctl/repo/rhel-9/group_redhat-et-flightctl-rhel-9.repo +dnf install -y flightctl +echo "Cleaning up..." +dnf clean all +EOF + +ENTRYPOINT [ "/usr/bin/flightctl" ] +CMD [ ] diff --git a/tekton/flightctl-image/build.sh b/tekton/flightctl-image/build.sh new file mode 100644 index 0000000..5179ca8 --- /dev/null +++ b/tekton/flightctl-image/build.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -euo pipefail + +echo "Logging into quay.io..." +podman login quay.io + +echo "Building and pushing the flightctl image..." +podman build -t quay.io/nmasse-redhat/flightctl:latest . +podman push quay.io/nmasse-redhat/flightctl:latest + +echo "Build and push completed successfully." +echo "Image available at: https://quay.io/repository/nmasse-redhat/flightctl?tab=tags" +exit 0