-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathrelease.yaml
executable file
·77 lines (75 loc) · 2.77 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
creationTimestamp: null
name: release
spec:
pipelineSpec:
tasks:
- name: chart
resources: {}
taskSpec:
metadata: {}
stepTemplate:
image: uses:jenkins-x/jx3-pipeline-catalog/tasks/go-plugin/release.yaml@versionStream
name: ""
resources: {}
workingDir: /workspace/source
steps:
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone.yaml@versionStream
name: ""
resources: {}
- name: next-version
resources: {}
- name: jx-variables
resources: {}
- name: release-binary
resources: {}
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/build-scan-push/build-scan-push.yaml@versionStream
name: build-container
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/build-scan-push/build-scan-push.yaml@versionStream
name: push-container
- name: chart-docs
resources: {}
- image: ghcr.io/jenkins-x/jx-boot:3.10.73
name: set-github-action-version
resources: {}
script: |
#!/usr/bin/env sh
source .jx/variables.sh
sed -i -e "s/jx-release-version:[0-9\.]*/jx-release-version:$VERSION/" action.yml
- name: changelog
resources: {}
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/supply-chain-security/task.yaml@versionStream
name: download-syft
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/supply-chain-security/task.yaml@versionStream
name: build-and-push-sbom
resources: {}
- name: cleanup-image-tar
image: alpine:3.16
resources: {}
script: |
#!/bin/sh
rm -f /workspace/source/image.tar
- name: upload-binaries
resources: {}
- name: promote-release
resources: {}
- image: ghcr.io/jenkins-x/jx-boot:3.10.73
name: promote-action
resources: {}
script: |
#!/usr/bin/env sh
source .jx/variables.sh
git clone https://github.com/jenkins-x-plugins/$REPO_NAME update-action
cd update-action
sed -i -e "s|ghcr.io/jenkins-x/$REPO_NAME:.*|ghcr.io/jenkins-x/$REPO_NAME:$VERSION'|" action.yml
sed -i -e "s|ghcr.io/jenkins-x/$REPO_NAME:.*|ghcr.io/jenkins-x/$REPO_NAME:$VERSION|" README.md
sed -i -e "s|jenkins-x-plugins/$REPO_NAME@v.*|jenkins-x-plugins/$REPO_NAME@v$VERSION|g" README.md
git add * || true
git commit -a -m "chore: upgrade image to $VERSION" --allow-empty
git push
podTemplate: {}
serviceAccountName: tekton-bot
timeout: 1h0m0s
status: {}