# SPDX-License-Identifier: MIT # Copyright (c) 2025 SUSE LLC # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. # Please submit bugfixes or comments via https://bugs.opensuse.org/ #!UseOBSRepositories #!BuildTag: opensuse/git-workflow/autogits-workflow-pr:0.1-1.%RELEASE% #!BuildTag: opensuse/git-workflow/autogits-workflow-pr:0.1 #!BuildTag: opensuse/git-workflow/autogits-workflow-pr:latest FROM opensuse/tumbleweed:latest RUN set -euo pipefail; \ zypper -n install autogits-workflow-pr RUN set -euo pipefail; zypper -n clean -a; \ rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; rm -f {/target,}/etc/shadow- RUN mkdir /root/.ssh RUN mkdir /repos RUN ln -s /data/workflow-pr.key /root/.ssh/id_ed25519 RUN ln -s /data/workflow-pr.key.pub /root/.ssh/id_ed25519.pub ADD known_hosts /root/.ssh/known_hosts ENV AMQP_USERNAME=opensuse ENV AMQP_PASSWORD=opensuse VOLUME /data VOLUME /repos ENTRYPOINT /usr/bin/workflow-pr -config /data/config.json -repo-path /repos -debug -check-on-start # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.bci.golang LABEL org.opencontainers.image.title="OpenSUSE autogits bot workflow-pr" LABEL org.opencontainers.image.description="Keeps ProjectGit PR in-sync with a PackageGit PR" LABEL org.opencontainers.image.version="0.1" 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.opencontainers.image.ref.name="0.1-1.%RELEASE%" LABEL org.opensuse.reference="registry.opensuse.org/opensuse/git-workflow/autogits-workflow-pr:0.1-1.%RELEASE%" LABEL org.openbuildservice.disturl="%DISTURL%" # endlabelprefix