-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstiletto.yml
56 lines (52 loc) · 1011 Bytes
/
stiletto.yml
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
base: &base
image: "golang:1.20"
caches: &base_caches
- name: gomodcache
path: /cache
env: &base_env
- key: GOMODCACHE
value: /cache
- key: GITHUB_TOKEN
valueFrom: GITHUB_TOKEN
mounts: &base_mounts
- host: .
container: /src
workdir: /src
# TODO: Implement
#secretEngines:
# - name: vault
# type: Vault
# spec:
# host: https://vault.opslevel.com
# token: ${VAULT_TOKEN}
# namespace: dev
secrets:
- name: GITHUB_TOKEN
from: env
- name: MYSQL_PASSWORD
from: vault
spec:
path: /secrets/mysql/password
services:
- name: redis
image: redis:7.0
ports:
- port: 6379
protocol: TCP
pipeline:
- name: "test"
<<: *base
commands:
- go test ./...
- name: "build"
<<: *base
commands:
- go build -o ./cli .
- chmod +x ./cli
- ./cli -h
- name: "integration"
image: redis:7.0
services:
db: redis
commands:
- redis-cli -h db -p 6379 ping