Clone the git repo instead of using ADD.
Some checks are pending
foreign-document-test Build foreign-document-test has started

Using ADD breaks the caching.
This commit is contained in:
Tom Alexander
2026-09-06 22:02:26 -04:00
parent 18240d5581
commit e04b6cab69
2 changed files with 12 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ spec:
- name: url
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
- name: revision
value: f909b6670474346e37a57a2d23131860b6a1a635
value: 62ca5ee06f60843efb3edfa3cf6f2f9ce3f8ee12
- name: pathInRepo
value: task/buildah-rootless-daemonless/0.1/buildah-rootless-daemonless.yaml
params:

View File

@@ -19,7 +19,17 @@ RUN apk add --no-cache build-base musl-dev git autoconf make texinfo gnutls-dev
FROM build AS build-emacs
ARG EMACS_REPO
ARG EMACS_VERSION
ADD "$EMACS_REPO#$EMACS_VERSION" /root/emacs
RUN <<EOF
set -euo pipefail
IFS=$'\n\t'
mkdir -p /root/emacs
git -C /root/emacs init --initial-branch=main
git -C /root/emacs remote add origin $EMACS_REPO
git -C /root/emacs fetch origin $EMACS_VERSION
git -C /root/emacs checkout FETCH_HEAD
EOF
#ADD "$EMACS_REPO#$EMACS_VERSION" /root/emacs
WORKDIR /root/emacs
RUN <<EOF
mkdir /root/dist