Multiple cleanups working toward run of test-pipeline.
This commit is contained in:
1 parent
6c28be4490
commit
ad8dd1cdda
8 files changed
+68
-22
No files matched your search
@@ -21,7 +21,7 @@ spec:
|
||||
- name: cosign-credentials
|
||||
steps:
|
||||
- name: build
|
||||
image: harbor.internal.jpace121.net/buildah:latest
|
||||
image: harbor.internal.jpace121.net/k8s/buildah:latest
|
||||
workingDir: $(workspaces.source.path)
|
||||
script: |
|
||||
set -x
|
||||
|
||||
@@ -9,8 +9,10 @@ spec:
|
||||
params:
|
||||
- name: url
|
||||
- name: hash
|
||||
results:
|
||||
- name: hash
|
||||
steps:
|
||||
- image: harbor.internal.jpace121.net/gitssh:latest
|
||||
- image: harbor.internal.jpace121.net/k8s/gitssh:latest
|
||||
script: |
|
||||
set -x
|
||||
cp -r $(workspaces.ssh-directory.path) ~/.ssh
|
||||
@@ -20,4 +22,6 @@ spec:
|
||||
|
||||
git clone $(params.url) $(workspaces.output.path)
|
||||
cd $(workspaces.output.path)
|
||||
git checkout $(params.hash)
|
||||
git checkout $(params.hash)
|
||||
|
||||
git rev-parse HEAD > $(results.hash.path)
|
||||
@@ -9,8 +9,10 @@ spec:
|
||||
params:
|
||||
- name: url
|
||||
- name: branch
|
||||
results:
|
||||
- name: hash
|
||||
steps:
|
||||
- image: harbor.internal.jpace121.net/gitssh:latest
|
||||
- image: harbor.internal.jpace121.net/k8s/gitssh:latest
|
||||
script: |
|
||||
set -x
|
||||
cp -r $(workspaces.ssh-directory.path) ~/.ssh
|
||||
@@ -18,4 +20,7 @@ spec:
|
||||
chmod -R 400 ~/.ssh/*
|
||||
ssh-keyscan -H -p 2222 git.jpace121.net >> ~/.ssh/known_hosts
|
||||
|
||||
git clone --single-branch --branch $(params.branch) $(params.url) $(workspaces.output.path)
|
||||
git clone --single-branch --branch $(params.branch) $(params.url) $(workspaces.output.path)
|
||||
|
||||
cd $(workspaces.output.path)
|
||||
git rev-parse HEAD > $(results.hash.path)
|
||||
@@ -0,0 +1,41 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: j7s-gitea-status
|
||||
spec:
|
||||
params:
|
||||
- name: git-owner
|
||||
- name: git-repo-name
|
||||
- name: sha
|
||||
- name: context
|
||||
- name: status
|
||||
- name: description
|
||||
default: ""
|
||||
- name: targetUrl
|
||||
default: ""
|
||||
- name: base-url
|
||||
default: "https://git.jpace121.net/"
|
||||
- name: token-secret-name
|
||||
default: gitea-token
|
||||
steps:
|
||||
- image: harbor.internal.jpace121.net/k8s/j7s-gitea-status:latest
|
||||
env:
|
||||
- name: GIT_URL
|
||||
value: $(params.base-url)
|
||||
- name: GIT_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: $(params.token-secret-name)
|
||||
key: token
|
||||
- name: GIT_OWNER
|
||||
value: $(params.git-owner)
|
||||
- name: GIT_REPO
|
||||
value: $(params.git-repo-name)
|
||||
script: |
|
||||
set -x
|
||||
cd /
|
||||
./j7s-gitea-status -sha $(params.sha) \
|
||||
-context $(params.context) \
|
||||
-statusFlag $(params.status) \
|
||||
-description $(params.description) \
|
||||
-targetUrl $(params.targetUrl)
|
||||
@@ -11,7 +11,7 @@ spec:
|
||||
- name: branch
|
||||
- name: repos-file
|
||||
steps:
|
||||
- image: harbor.internal.jpace121.net/vcs:latest
|
||||
- image: harbor.internal.jpace121.net/k8s/vcs:latest
|
||||
script: |
|
||||
set -x
|
||||
cp -r $(workspaces.ssh-directory.path) ~/.ssh
|
||||
|
||||
@@ -5,4 +5,5 @@ resources:
|
||||
- j7s-buildah.yaml
|
||||
- j7s-git-clone-hash.yaml
|
||||
- j7s-git-clone.yaml
|
||||
- j7s-ros-clone.yaml
|
||||
- j7s-ros-clone.yaml
|
||||
- j7s-gitea-status.yaml
|
||||
Reference in new issue
Block a user