Clone the git repo instead of using ADD.
Some checks failed
foreign-document-test Build foreign-document-test has failed
Some checks failed
foreign-document-test Build foreign-document-test has failed
Using ADD breaks the caching.
This commit is contained in:
@@ -103,7 +103,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: f909b6670474346e37a57a2d23131860b6a1a635
|
value: 43e8590b1e69b0d46076acc560ce2e6ee4222c02
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/buildah-rootless-daemonless/0.1/buildah-rootless-daemonless.yaml
|
value: task/buildah-rootless-daemonless/0.1/buildah-rootless-daemonless.yaml
|
||||||
params:
|
params:
|
||||||
@@ -143,6 +143,8 @@ spec:
|
|||||||
workspace: git-source
|
workspace: git-source
|
||||||
- name: dockerconfig
|
- name: dockerconfig
|
||||||
workspace: docker-credentials
|
workspace: docker-credentials
|
||||||
|
- name: buildah-storage
|
||||||
|
workspace: buildah-storage
|
||||||
runAfter:
|
runAfter:
|
||||||
- fetch-repository
|
- fetch-repository
|
||||||
- name: run-test
|
- name: run-test
|
||||||
@@ -286,6 +288,7 @@ spec:
|
|||||||
- name: git-source
|
- name: git-source
|
||||||
- name: docker-credentials
|
- name: docker-credentials
|
||||||
- name: cargo-cache
|
- name: cargo-cache
|
||||||
|
- name: buildah-storage
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: git-source
|
- name: git-source
|
||||||
volumeClaimTemplate:
|
volumeClaimTemplate:
|
||||||
@@ -297,6 +300,16 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
subPath: rust-source
|
subPath: rust-source
|
||||||
|
- name: buildah-storage
|
||||||
|
volumeClaimTemplate:
|
||||||
|
spec:
|
||||||
|
storageClassName: "local-path"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
subPath: buildah-storage
|
||||||
- name: cargo-cache
|
- name: cargo-cache
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: organic-cargo-cache-test-foreign-document
|
claimName: organic-cargo-cache-test-foreign-document
|
||||||
|
|||||||
@@ -19,7 +19,17 @@ RUN apk add --no-cache build-base musl-dev git autoconf make texinfo gnutls-dev
|
|||||||
FROM build AS build-emacs
|
FROM build AS build-emacs
|
||||||
ARG EMACS_REPO
|
ARG EMACS_REPO
|
||||||
ARG EMACS_VERSION
|
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
|
WORKDIR /root/emacs
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
mkdir /root/dist
|
mkdir /root/dist
|
||||||
|
|||||||
Reference in New Issue
Block a user