Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7938bf7c3
|
@@ -103,34 +103,38 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||
value: 9c6d3bc418dc2f54d73bdfa984bce3eb6c65fd60
|
||||
- name: pathInRepo
|
||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||
value: task/buildah-rootless-daemonless/0.1/buildah-rootless-daemonless.yaml
|
||||
params:
|
||||
- name: OUTPUT
|
||||
value: >-
|
||||
type=image,"name=$(params.image-name):latest,$(params.image-name):$(tasks.fetch-repository.results.commit)",push=true,compression=zstd,compression-level=22,oci-mediatypes=true
|
||||
$(params.image-name):$(tasks.fetch-repository.results.commit)
|
||||
- name: CONTEXT
|
||||
value: $(params.path-to-image-context)
|
||||
- name: DOCKERFILE
|
||||
value: $(params.path-to-dockerfile)
|
||||
- name: EXTRA_ARGS
|
||||
value:
|
||||
- "--opt"
|
||||
- "target=$(params.target-name)"
|
||||
- --import-cache
|
||||
- "type=registry,ref=$(params.image-name):buildcache"
|
||||
- --export-cache
|
||||
- "type=registry,ref=$(params.image-name):buildcache,mode=max,compression=zstd,compression-level=22,rewrite-timestamp=true,image-manifest=true,oci-mediatypes=true"
|
||||
- --opt
|
||||
- build-arg:SOURCE_DATE_EPOCH=$(tasks.get-git-commit-time.results.unix-time)
|
||||
- name: BUILDKITD_TOML
|
||||
- "--target"
|
||||
- "$(params.target-name)"
|
||||
- --cache-from
|
||||
- "$(params.image-name)-buildcache"
|
||||
- --cache-to
|
||||
- "$(params.image-name)-buildcache"
|
||||
- name: REGISTRIES_CONF
|
||||
value: |
|
||||
debug = true
|
||||
[registry."docker.io"]
|
||||
mirrors = ["dockerhub.dockerhub.svc.cluster.local"]
|
||||
[registry."dockerhub.dockerhub.svc.cluster.local"]
|
||||
http = true
|
||||
unqualified-search-registries = ["docker.io"]
|
||||
|
||||
[[registry]]
|
||||
location = "dockerhub.dockerhub.svc.cluster.local"
|
||||
insecure = true
|
||||
|
||||
[[registry]]
|
||||
location = "docker.io"
|
||||
|
||||
[[registry.mirror]]
|
||||
location = "dockerhub.dockerhub.svc.cluster.local" # Replace with your mirror URL
|
||||
insecure = true
|
||||
workspaces:
|
||||
- name: source
|
||||
@@ -178,7 +182,7 @@ spec:
|
||||
- build-image
|
||||
params:
|
||||
- name: docker-image
|
||||
value: "$(tasks.build-image.results.IMAGE_URL[1])"
|
||||
value: "$(tasks.build-image.results.IMAGE_URL[0])"
|
||||
finally:
|
||||
- name: report-success
|
||||
when:
|
||||
@@ -275,7 +279,7 @@ spec:
|
||||
workspace: cargo-cache
|
||||
params:
|
||||
- name: docker-image
|
||||
value: "$(tasks.build-image.results.IMAGE_URL[1])"
|
||||
value: "$(tasks.build-image.results.IMAGE_URL[0])"
|
||||
workspaces:
|
||||
- name: git-source
|
||||
- name: docker-credentials
|
||||
@@ -305,4 +309,4 @@ spec:
|
||||
- name: path-to-image-context
|
||||
value: docker/organic_test/
|
||||
- name: path-to-dockerfile
|
||||
value: docker/organic_test/
|
||||
value: docker/organic_test/Dockerfile
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
version = "0.0.1"
|
||||
|
||||
[[push]]
|
||||
name = "rust-test"
|
||||
source = "pipeline-rust-test.yaml"
|
||||
clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
skip_branches = [ "^v[0-9]+\\.[0-9]+\\.[0-9]+$" ]
|
||||
# [[push]]
|
||||
# name = "rust-test"
|
||||
# source = "pipeline-rust-test.yaml"
|
||||
# clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
# skip_branches = [ "^v[0-9]+\\.[0-9]+\\.[0-9]+$" ]
|
||||
|
||||
[[push]]
|
||||
name = "foreign-document-test"
|
||||
source = "pipeline-foreign-document-test.yaml"
|
||||
clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
branches = [ "^main$", "^master$" ]
|
||||
branches = [ "^main$", "^master$", "^buildah$" ]
|
||||
|
||||
[[push]]
|
||||
name = "clippy"
|
||||
source = "pipeline-rust-clippy.yaml"
|
||||
clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
skip_branches = [ "^v[0-9]+\\.[0-9]+\\.[0-9]+$" ]
|
||||
# [[push]]
|
||||
# name = "clippy"
|
||||
# source = "pipeline-rust-clippy.yaml"
|
||||
# clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
# skip_branches = [ "^v[0-9]+\\.[0-9]+\\.[0-9]+$" ]
|
||||
|
||||
[[push]]
|
||||
name = "format"
|
||||
source = "pipeline-format.yaml"
|
||||
clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
skip_branches = [ "^v[0-9]+\\.[0-9]+\\.[0-9]+$" ]
|
||||
# [[push]]
|
||||
# name = "format"
|
||||
# source = "pipeline-format.yaml"
|
||||
# clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
# skip_branches = [ "^v[0-9]+\\.[0-9]+\\.[0-9]+$" ]
|
||||
|
||||
[[push]]
|
||||
name = "build"
|
||||
source = "pipeline-build-hash.yaml"
|
||||
clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
branches = [ "^main$", "^master$" ]
|
||||
# [[push]]
|
||||
# name = "build"
|
||||
# source = "pipeline-build-hash.yaml"
|
||||
# clone_uri = "git@code.fizz.buzz:talexander/organic.git"
|
||||
# branches = [ "^main$", "^master$" ]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user