From f23dbef781d390b0cea8adc0029f5de647d25f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 17 Sep 2025 15:03:04 +0200 Subject: [PATCH] wip --- tekton/flightctl-image/Containerfile | 15 +++++++++++++++ tekton/flightctl-image/build.sh | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tekton/flightctl-image/Containerfile create mode 100644 tekton/flightctl-image/build.sh 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