-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargo-workflows.yaml
164 lines (148 loc) · 5.41 KB
/
argo-workflows.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
package:
name: argo-workflows
version: 3.6.2
epoch: 4
description: Workflow engine for Kubernetes.
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go
- node-gyp
- nodejs-20
- openssl
- yarn
environment:
CGO_ENABLED: 0
pipeline:
- uses: git-checkout
with:
expected-commit: 741ab0ef7b6432925e49882cb4294adccf5912ec
repository: https://github.com/argoproj/argo-workflows
tag: v${{package.version}}
- name: Generate yarn UI
runs: |
rm -rf ui/.yarnrc ui/yarn.lock
JOBS=max yarn --cwd ui install
JOBS=max yarn --cwd ui build
# Install staticfiles for build time
go install bou.ke/staticfiles@dd04075
# Pack yarn UI into go binary
/home/build/.cache/go/bin/staticfiles -o server/static/files.go ui/dist/app
- uses: go/bump
with:
deps: golang.org/x/crypto@v0.31.0 golang.org/x/net@v0.33.0 github.com/go-git/go-git/v5@v5.13.0
- uses: go/build
with:
packages: ./cmd/argo
output: argo
ldflags: |
-X github.com/argoproj/argo-workflows/v3.version=$(git describe --exact-match --tags --abbrev=0 2> /dev/null || echo untagged)
-X github.com/argoproj/argo-workflows/v3.buildDate=$(date -u ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
-X github.com/argoproj/argo-workflows/v3.gitCommit=$(git rev-parse HEAD || echo unknown)
-X github.com/argoproj/argo-workflows/v3.gitTreeState=$(if [ -z "`git status --porcelain`" ]; then echo "clean" ; else echo "dirty"; fi)
- uses: strip
subpackages:
- name: "argo-workflows-known-hosts"
description: "known hosts file for argo workflows"
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/etc/ssh
cp hack/ssh_known_hosts ${{targets.subpkgdir}}/etc/ssh/
- uses: strip
- name: "argo-workflow-controller"
description: "Argo workflow controller"
pipeline:
- uses: go/build
with:
packages: ./cmd/workflow-controller
output: workflow-controller
ldflags: |
-X github.com/argoproj/argo-workflows/v3.version=$(git describe --exact-match --tags --abbrev=0 2> /dev/null || echo untagged)
-X github.com/argoproj/argo-workflows/v3.buildDate=$(date -u ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
-X github.com/argoproj/argo-workflows/v3.gitCommit=$(git rev-parse HEAD || echo unknown)
-X github.com/argoproj/argo-workflows/v3.gitTreeState=$(if [ -z "`git status --porcelain`" ]; then echo "clean" ; else echo "dirty"; fi)
- uses: strip
test:
pipeline:
- runs: |
workflow-controller version
workflow-controller --help
- name: "argo-workflow-executor"
description: "Argo workflow executor"
pipeline:
- uses: go/build
with:
packages: ./cmd/argoexec
output: argoexec
ldflags: |
-X github.com/argoproj/argo-workflows/v3.version=$(git describe --exact-match --tags --abbrev=0 2> /dev/null || echo untagged)
-X github.com/argoproj/argo-workflows/v3.buildDate=$(date -u ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
-X github.com/argoproj/argo-workflows/v3.gitCommit=$(git rev-parse HEAD || echo unknown)
-X github.com/argoproj/argo-workflows/v3.gitTreeState=$(if [ -z "`git status --porcelain`" ]; then echo "clean" ; else echo "dirty"; fi)
- uses: strip
test:
pipeline:
- runs: |
argoexec version
argoexec --help
- name: argo-workflow-controller-compat
pipeline:
- runs: |
# Symlink the binary from usr/bin to /
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/bin/workflow-controller ${{targets.subpkgdir}}/workflow-controller
dependencies:
runtime:
- argo-workflow-controller
- name: argo-workflow-executor-compat
pipeline:
- runs: |
# Symlink the binary from usr/bin to /
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/bin/argoexec ${{targets.subpkgdir}}/argoexec
dependencies:
runtime:
- argo-workflow-executor
- name: argo-workflow-cli
pipeline:
- runs: |
# Symlink the binary from usr/bin to /
# Argocli serves the server https://github.com/argoproj/argo-workflows/blob/master/Dockerfile#L110
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/bin/argo ${{targets.subpkgdir}}/argo
dependencies:
runtime:
- argo-workflows
- name: "argo-workflows-ui"
description: "Argo workflows embedded UI"
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/lib/argo-workflows-ui
cp -ar ui/ ${{targets.subpkgdir}}/usr/lib/argo-workflows-ui
update:
enabled: true
github:
identifier: argoproj/argo-workflows
strip-prefix: v
test:
environment:
contents:
packages:
- argo-workflow-cli
- argo-workflow-controller-compat
- argo-workflow-controller
- argo-workflow-executor-compat
- argo-workflow-executor
pipeline:
- runs: |
# Test compat packages and full paths
/usr/bin/argo --help
/usr/bin/argoexec --help
/usr/bin/workflow-controller --help
/argo --help
/workflow-controller --help
/argoexec --help