Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
website/werf.yaml at main · werf/website · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
werf
website
Repository navigation
Code
Issues
8
(8)
Pull requests
2
(2)
Actions
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
website
/
werf.yaml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
250 lines (246 loc) · 5.81 KB
main
Breadcrumbs
website
/
werf.yaml
Copy path
Top
File metadata and controls
Code
Blame
250 lines (246 loc) · 5.81 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
{{ $_ := set . "CacheVersion" "20251023" }}
configVersion
:
1
project
:
werf-site
---
image
:
jekyll_base
from
:
jekyll/builder:4.2.0
fromCacheVersion
:
{{ $.CacheVersion }}
git
:
-
add
:
/
to
:
/app
owner
:
jekyll
group
:
jekyll
includePaths
:
-
Gemfile
-
Gemfile.lock
stageDependencies
:
setup
:
["**/*"]
shell
:
setup
:
-
cd /app
-
bundle install
---
image
:
generate_artifacts
from
:
ubuntu:22.04
fromCacheVersion
:
{{ $.CacheVersion }}
secrets
:
-
env
:
WERFIO_GITHUB_TOKEN
git
:
-
add
:
/.werf/artifacts
to
:
/artifacts
-
url
:
https://github.com/werf/werf.git
add
:
/
to
:
/werf
branch
:
main
stageDependencies
:
setup
:
-
"
trdl_channels.yaml
"
shell
:
install
:
-
apt update -y
-
apt install -y curl jq git wget
-
wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.47.2/yq_linux_amd64
-
chmod a+x /usr/local/bin/yq
setup
:
-
cd /artifacts
-
WERFIO_GITHUB_TOKEN=$(cat /run/secrets/WERFIO_GITHUB_TOKEN) ./generate_artifacts.sh
---
image
:
common_artifacts
from
:
ubuntu:22.04
fromCacheVersion
:
{{ $.CacheVersion }}
import
:
-
image
:
generate_artifacts
add
:
/artifacts
to
:
/artifacts
excludePaths
:
-
"
*.sh
"
-
convert
-
"
*.xml-template
"
before
:
install
shell
:
install
:
-
cd /artifacts
-
sed -i 's/{% raw %}//g; s/{% endraw %}//g' /artifacts/releases.json
-
if [ -f feeds.tgz.base64 ] ; then base64 -d feeds.tgz.base64 > feeds.tgz; tar -xzf feeds.tgz --transform='s/feeds/./' --wildcards '*.xml'; else echo "RSS feeds file feeds.tgz is absent!"; exit 1 ; fi
-
rm -f feeds.tgz.base64
-
rm -f feeds.tgz
---
image
:
configuration_artifacts
from
:
golang:1.22
fromCacheVersion
:
{{ $.CacheVersion }}
git
:
-
add
:
/bin/configurator
to
:
/configurator
stageDependencies
:
install
:
'
**/*
'
shell
:
install
:
-
cd /configurator
-
echo Regenerate configurator pages...
-
go run *.go
---
{{- range $lang := list "en" "ru" }}
image
:
doc_{{ $lang }}
fromImage
:
jekyll_base
fromCacheVersion
:
{{ $.CacheVersion }}
import
:
-
image
:
common_artifacts
add
:
/artifacts
to
:
/artifacts
before
:
setup
-
image
:
configuration_artifacts
add
:
/configurator
includePaths
:
-
static
-
generated
to
:
/tmp
after
:
install
git
:
-
add
:
/
to
:
/app
owner
:
jekyll
group
:
jekyll
includePaths
:
-
_data
-
_includes
-
_layouts
-
_plugins
-
assets
-
examples
-
pages_{{ $lang }}
-
ssi
-
_config.yml
-
_config_dev.yml
-
_config_{{ $lang }}.yml
-
"
*.xml
"
-
"
*.sh
"
-
"
*.asc
"
-
"
*.png
"
-
"
*.svg
"
-
favicon.ico
-
robots.txt
-
site.webmanifest
stageDependencies
:
beforeSetup
:
["**/*"]
shell
:
beforeSetup
:
-
cp -R /tmp/static/* /tmp/generated/* /app
setup
:
-
cd /app
-
set -u
-
mkdir -m 0777 -p /app/_site
-
cp -f /artifacts/*.json /app/_data/_common/
-
cp -f /artifacts/pages_{{ $lang }}/* /app/pages_{{ $lang }}/
-
export JEKYLL_ENV="{{ $.Env }}"
{{- if eq $.Env "development" }}
-
bundle exec jekyll build -tV --config _config.yml,_config_dev.yml,_config_{{ $lang }}.yml --destination _site/
{{- else }}
-
bundle exec jekyll build --config _config.yml,_config_{{ $lang }}.yml --destination _site/
{{- end }}
---
{{ end -}}
image
:
backend-artifact
from
:
golang:1.22
fromCacheVersion
:
{{ $.CacheVersion }}
shell
:
install
:
-
cd /go/src/app
-
go get -d -v ./
-
go build -ldflags "-w -s" -v -o /go/src/app/server /go/src/app/
git
:
-
add
:
/backend
to
:
/go/src/app
stageDependencies
:
install
:
'
**/*
'
---
image
:
backend
from
:
ubuntu:22.04
fromCacheVersion
:
{{ $.CacheVersion }}
shell
:
install
:
-
apt update -y
-
apt install -y git curl jq vim
import
:
-
image
:
backend-artifact
add
:
/go/src/app/server
to
:
/app/server
before
:
setup
imageSpec
:
config
:
workingDir
:
/app
---
image
:
web-backend
fromImage
:
backend
fromCacheVersion
:
{{ $.CacheVersion }}
import
:
{{- range $lang := list "en" "ru" }}
-
image
:
doc_{{ $lang }}
add
:
/app/_site
to
:
/app/root/{{ $lang }}
after
:
setup
{{ end -}}
imageSpec
:
config
:
workingDir
:
/app
---
image
:
tuf-router
from
:
fabiocicerchia/nginx-lua:1.21-alpine@sha256:525aa8fd0ac9bf5c7e82cd83b3f8ebf620bedb0d0b1e52955745fd53917eb24c
fromCacheVersion
:
{{ $.CacheVersion }}
git
:
-
add
:
/.werf
to
:
/etc/nginx
excludePaths
:
-
"
artifacts
"
-
"
nginx-dev.conf
"
stageDependencies
:
install
:
"
**/*
"
shell
:
install
:
-
mv /etc/nginx/nginx-tuf-router.conf /etc/nginx/nginx.conf
---
{{- if eq $.Env "test" }}
image
:
spell-checker
from
:
ubuntu:20.04
fromCacheVersion
:
{{ $.CacheVersion }}
import
:
-
image
:
doc_ru
add
:
/app/_site
to
:
/spelling/ru
after
:
install
-
image
:
doc_en
add
:
/app/_site
to
:
/spelling/en
after
:
install
git
:
-
add
:
/scripts/docs/spelling/dictionaries/
to
:
/temp/dictionaries
stageDependencies
:
setup
:
'
**/*
'
-
add
:
/scripts/docs/spelling/internal/
to
:
/temp/internal
stageDependencies
:
setup
:
'
**/*
'
shell
:
beforeInstall
:
-
apt -y update && apt -y upgrade
-
apt install -y locales
-
sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
-
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
install
:
-
apt -y update && apt -y install hunspell html2text python3.9 python3-pip
-
pip3 install beautifulsoup4
setup
:
-
rm /usr/share/hunspell/*
-
cp /temp/dictionaries/* /usr/share/hunspell/
-
cp /temp/internal/* /spelling/en
-
cp /temp/internal/* /spelling/ru
imageSpec
:
config
:
env
:
LANG
:
ru_RU.UTF-8
LANGUAGE
:
ru_RU:ru
LC_LANG
:
ru_RU.UTF-8
LC_ALL
:
ru_RU.UTF-8
LC_MESSAGES
:
ru_RU.UTF-8
TZ
:
Europe/Moscow
{{ end -}}
You can’t perform that action at this time.