Skip to content

Instantly share code, notes, and snippets.

@askb
Created March 1, 2023 11:15
Show Gist options
  • Save askb/0445d9b76f37846d60fd41f57dccb745 to your computer and use it in GitHub Desktop.
Save askb/0445d9b76f37846d60fd41f57dccb745 to your computer and use it in GitHub Desktop.
FROM centos:7
SHELL ["/bin/bash", "-c"]
ARG SIGN_DIR="${WORKSPACE}/m2repo"
ARG GIT_TAG=""
RUN echo $'[fedora-infra-sigul] \n\
name=Fedora builder packages for sigul \n\
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel\$releasever-infra/latest/\$basearch/ \n\
enabled=1 \n\
gpgcheck=1 \n\
gpgkey=https://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS \n\
includepkgs=sigul* \n\
skip_if_unavailable=True' > /etc/yum.repos.d/fedora-infra-sigul.repo
RUN yum install -y -q sigul
RUN mkdir -p /w/workspace && mkdir -p /home/jenkins
COPY ./sigul-sign.sh /
USER root
ENTRYPOINT ["/bin/bash", "/sigul-sign.sh"]
CMD ["${SIGN_DIR}"] ["${GIT_TAG}"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment