Skip to content

Commit 3ac9f83

Browse files
ADD post-promotion-starter (#543)
1 parent 58f29db commit 3ac9f83

File tree

6 files changed

+208
-0
lines changed

6 files changed

+208
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## v0.0.1 (12.05.2024)
4+
5+
### post-promotion-starter
6+
7+
This Workflow Template is an example of a post-promotion workflow that uses a script template to display application details, commit information, and the Argo CD host, taking these parameters from the promotion flow process.
Lines changed: 39 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Post Promotion Starter
2+
3+
## Summary
4+
5+
This Workflow Template is an example of a post-promotion workflow that uses a script template to display application details, commit information, and the Argo CD host, taking these parameters from the promotion flow process.
6+
## Templates
7+
8+
1. [post-promotion-starter](https://github.com/codefresh-io/argo-hub/blob/main/examples/post-promotion-starter/versions/0.0.1/docs/post-promotion-starter.md)
9+
10+
## Security
11+
12+
Minimal required permissions
13+
14+
[Full rbac permissions list](https://github.com/codefresh-io/argo-hub/blob/main/examples/post-promotion-starter/versions/0.0.1/rbac.yaml)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Post Promotion Starter
2+
3+
## Summary
4+
This Workflow Template is an example of a post-promotion workflow that uses a script template to display application details, commit information, and the Argo CD host, taking these parameters from the promotion flow process.
5+
6+
7+
## Inputs/Outputs
8+
9+
#### Parameters
10+
* APP_NAME
11+
* COMMIT_SHA
12+
* COMMIT_AUTHOR
13+
* COMMIT_MESSAGE
14+
* COMMIT_DATE
15+
* ARGOCD_HOST
16+
17+
### Outputs
18+
no outputs
19+
20+
## Examples
21+
22+
### task Example
23+
```
24+
apiVersion: argoproj.io/v1alpha1
25+
kind: Workflow
26+
metadata:
27+
generateName: post-promotion-starter
28+
spec:
29+
entrypoint: main
30+
volumes:
31+
templates:
32+
- name: main
33+
dag:
34+
tasks:
35+
- name: post-promotion-starter
36+
templateRef:
37+
name: argo-hub.post-promotion-starter.0.0.1
38+
template: post-promotion-starter
39+
arguments:
40+
parameters:
41+
- name: APP_NAME
42+
value: 'my-app'
43+
- name: APP_NAMESPACE
44+
value: 'staging'
45+
- name: ARGOCD_HOST
46+
value: 'argo-cd-server.staging.svc.cluster.local'
47+
- name: COMMIT_SHA
48+
value: '123456'
49+
- name: COMMIT_AUTHOR
50+
value: 'John Doe'
51+
- name: COMMIT_MESSAGE
52+
value: 'Initial commit'
53+
- name: COMMIT_DATE
54+
value: '2021-01-01'
55+
```
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: argo-hub.post-promotion-starter.0.0.1
5+
annotations:
6+
argo-hub/version: '0.0.1'
7+
---
8+
apiVersion: rbac.authorization.k8s.io/v1
9+
kind: Role
10+
metadata:
11+
name: argo-hub.post-promotion-starter.0.0.1
12+
annotations:
13+
argo-hub/version: '0.0.1'
14+
rules:
15+
- apiGroups:
16+
- ""
17+
resources:
18+
- pods
19+
verbs:
20+
- get
21+
- watch
22+
- patch
23+
- apiGroups:
24+
- ""
25+
resources:
26+
- pods/log
27+
verbs:
28+
- get
29+
- watch
30+
---
31+
apiVersion: rbac.authorization.k8s.io/v1
32+
kind: RoleBinding
33+
metadata:
34+
name: argo-hub.post-promotion-starter.0.0.1
35+
annotations:
36+
argo-hub/version: '0.0.1'
37+
roleRef:
38+
apiGroup: rbac.authorization.k8s.io
39+
kind: Role
40+
name: argo-hub.post-promotion-starter.0.0.1
41+
subjects:
42+
- kind: ServiceAccount
43+
name: argo-hub.post-promotion-starter.0.0.1

0 commit comments

Comments
 (0)