commit ed62a9b40e1012451a7769fbf5431781198bcc99d104771c853747ddd58e693a Author: Dirk Mueller Date: Mon Dec 11 08:19:21 2023 +0000 [info=7540ca2a8f462b53b12d729e5da2a3a1] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/gitea-runner-image?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f3b8cdd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: MIT + +# Copyright (c) 2023 SUSE LLC + +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. + +# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. +# It is maintained by the BCI team and generated by +# https://github.com/SUSE/BCI-dockerfile-generator + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# You can contact the BCI team via https://github.com/SUSE/bci/discussions + + +#!BuildTag: opensuse/bci/bci-gitea-runner:%OS_VERSION_ID_SP% +#!BuildTag: opensuse/bci/bci-gitea-runner:%OS_VERSION_ID_SP%.%RELEASE% +#!BuildTag: opensuse/bci/bci-gitea-runner:latest + +FROM opensuse/tumbleweed:latest + +MAINTAINER openSUSE (https://www.opensuse.org/) + +# Define labels according to https://en.opensuse.org/Building_derived_containers +# labelprefix=org.opensuse.bci.gitea-runner +LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Gitea Action Runner" +LABEL org.opencontainers.image.description="Gitea Action Runner container based on the openSUSE Tumbleweed Base Container Image." +LABEL org.opencontainers.image.version="%OS_VERSION_ID_SP%.%RELEASE%" +LABEL org.opencontainers.image.url="https://www.opensuse.org" +LABEL org.opencontainers.image.created="%BUILDTIME%" +LABEL org.opencontainers.image.vendor="openSUSE Project" +LABEL org.opencontainers.image.source="%SOURCEURL%" +LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/bci-gitea-runner:%OS_VERSION_ID_SP%.%RELEASE%" +LABEL org.openbuildservice.disturl="%DISTURL%" +LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime" +LABEL org.opensuse.release-stage="released" + +# endlabelprefix + +RUN set -euo pipefail; zypper -n in --no-recommends osc expect obs-service-source_validator openSUSE-release openSUSE-release-appliance-docker; zypper -n clean; rm -rf /var/log/* +COPY osc_checkout /usr/bin/osc_checkout +RUN set -euo pipefail; chmod +x /usr/bin/osc_checkout diff --git a/_service b/_service new file mode 100644 index 0000000..1652e46 --- /dev/null +++ b/_service @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/gitea-runner-image.changes b/gitea-runner-image.changes new file mode 100644 index 0000000..ffbe5e7 --- /dev/null +++ b/gitea-runner-image.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Dec 11 07:14:09 UTC 2023 - SUSE Update Bot + +- First version of the Gitea Action Runner BCI diff --git a/osc_checkout b/osc_checkout new file mode 100644 index 0000000..bf984f9 --- /dev/null +++ b/osc_checkout @@ -0,0 +1,13 @@ +#!/usr/bin/expect -f + +set timeout -1 +spawn osc checkout "$env(INPUT_OSC_PATH)" "$env(INPUT_OSC_PACKAGE)" +expect { + -re "..*Username \\\[api.opensuse.org\\\]: " { send "$env(INPUT_OSC_USER)\r"; exp_continue } + -re "..*Password \\\[..*\@api.opensuse.org\\\]: " { send "$env(osc_pass)\r"; exp_continue } + -re "..*Select credentials manager \\\[default=1\\\]:" { send "3\r"; exp_continue } + -re "..*Password \\\[..*\@api.opensuse.org\\\]: " { send "$env(osc_pass)\r"; exp_continue } + -re "..*At revision (..*)" { puts $expect_out(1,string); + send "cd $env(INPUT_OSC_PATH)\r"; send "cd $env(INPUT_OSC_PACKAGE)\r"; + exp_continue } +}