-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (59 loc) · 2.31 KB
/
docs.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
name: Docs
on:
pull_request:
paths-ignore:
- "README.md"
jobs:
validate:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/jetstack/*
steps:
- name: Configure private repo pull access
# the following configuration will grant this action permissions to pull
# that contents of that private repos using the deploy keys in the repo secrets
run: |
mkdir ~/.ssh
chmod 700 ~/.ssh
echo "${{ secrets.DEPLOY_KEY_READ_JS_OPERATOR }}" > ~/.ssh/js_operator_id
echo "${{ secrets.DEPLOY_KEY_READ_VENAFI_ENHANCED_ISSUER }}" > ~/.ssh/venafi_enhanced_issuer_id
echo "${{ secrets.DEPLOY_KEY_READ_EXTERNAL_ISSUER_LIB }}" > ~/.ssh/external_issuer_lib_id
chmod 600 ~/.ssh/venafi_enhanced_issuer_id
chmod 600 ~/.ssh/external_issuer_lib_id
chmod 600 ~/.ssh/js_operator_id
cat <<EOT >> ~/.ssh/config
Host js-operator.github.com
HostName github.com
IdentityFile ~/.ssh/js_operator_id
IdentitiesOnly yes
EOT
cat <<EOT >> ~/.ssh/config
Host venafi-enhanced-issuer.github.com
HostName github.com
IdentityFile ~/.ssh/venafi_enhanced_issuer_id
IdentitiesOnly yes
EOT
cat <<EOT >> ~/.ssh/config
Host external-issuer-lib.github.com
HostName github.com
IdentityFile ~/.ssh/external_issuer_lib_id
IdentitiesOnly yes
EOT
cat <<EOT >> ~/.gitconfig
[url "[email protected]:jetstack/js-operator"]
insteadOf = https://github.com/jetstack/js-operator
[url "[email protected]:jetstack/venafi-enhanced-issuer"]
insteadOf = https://github.com/jetstack/venafi-enhanced-issuer
[url "[email protected]:jetstack/external-issuer-lib"]
insteadOf = https://github.com/jetstack/external-issuer-lib
EOT
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
- name: Checkout
uses: actions/checkout@v3
- name: Update docs
run: make docs-gen
- name: Test clean
run: git add . && git diff --cached --exit-code