-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (59 loc) · 2.15 KB
/
nightwatch.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
name: Build and deploy nightwatch tests
on:
push:
branches:
- main
paths:
- '.github/workflows/nightwatch.yaml'
- 'smoketest/**'
pull_request:
paths:
- '.github/workflows/nightwatch.yaml'
- 'smoketest/**'
jobs:
build:
runs-on: zon-ubuntu-general-dind
permissions:
id-token: write
contents: write
steps:
- uses: ZeitOnline/gh-action-baseproject@v0
with:
project_name: vivi
environment: staging
gke_auth: true
- run: |
export TAG=foo
kubectl config set-context --current --namespace=vivi
kubectl version
kubectl run wosctest --image=ubuntu:22.04 --restart=Never --override-type=strategic --overrides="{\"spec\": {
\"serviceAccount\": \"baseproject\",
\"containers\": [{
\"name\": \"nightwatch-test-$TAG\",
\"env\": [
{\"name\": \"HTTPS_PROXY\", \"value\": \"http://static-ip-proxy.ops.zeit.de:3128\"},
{\"name\": \"VIVI_XMLRPC_PASSWORD\", \"valueFrom\": {\"secretKeyRef\": {
\"name\": \"principals\",
\"key\": \"vivi_zeit.cms.principals_system.nightwatch\",
}}}
]
]} }"
# uses: zeitonline/gh-action-workflows/.github/workflows/[email protected]
# secrets: inherit
# with:
# versions: smoketest/k8s/base/versions
# # copy&paste from k8s/base and k8s/staging manifest
# args: |
# --override-type=strategic --overrides="{\"spec\": {
# \"serviceAccount\": \"baseproject\",
# \"containers\": [{
# \"name\": \"nightwatch-test-$TAG\",
# \"env\": [
# {\"name\": \"HTTPS_PROXY\", \"value\": \"http://static-ip-proxy.ops.zeit.de:3128\"},
# {\"name\": \"VIVI_XMLRPC_PASSWORD\", \"valueFrom\": {\"secretKeyRef\": {
# \"name\": \"principals\",
# \"key\": \"vivi_zeit.cms.principals_system.nightwatch\",
# }}}
# ]
# ]} }"
# deploy happens via flux (on `main` branch)