|
9 | 9 | branches: |
10 | 10 | - "*" |
11 | 11 |
|
| 12 | +env: |
| 13 | + GOPRIVATE: github.com/jetstack/venafi-connection-lib |
| 14 | + |
12 | 15 | jobs: |
13 | 16 | vet: |
14 | 17 | name: vet |
15 | 18 | runs-on: ubuntu-22.04 |
16 | 19 | container: golang:1.22 |
17 | 20 | steps: |
| 21 | + - name: Configure jetstack/venafi-connection-lib repo pull access |
| 22 | + run: | |
| 23 | + mkdir ~/.ssh |
| 24 | + chmod 700 ~/.ssh |
| 25 | +
|
| 26 | + echo "${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }}" > ~/.ssh/venafi_connection_lib_id |
| 27 | + chmod 600 ~/.ssh/venafi_connection_lib_id |
| 28 | +
|
| 29 | + cat <<EOT >> ~/.ssh/config |
| 30 | + Host venafi-connection-lib.github.com |
| 31 | + HostName github.com |
| 32 | + IdentityFile ~/.ssh/venafi_connection_lib_id |
| 33 | + IdentitiesOnly yes |
| 34 | + EOT |
| 35 | +
|
| 36 | + cat <<EOT >> ~/.gitconfig |
| 37 | + [url "git@venafi-connection-lib.github.com:jetstack/venafi-connection-lib"] |
| 38 | + insteadOf = https://github.com/jetstack/venafi-connection-lib |
| 39 | + EOT |
18 | 40 | - uses: actions/checkout@v4 |
19 | 41 | - run: make vet |
20 | 42 | shell: bash |
|
23 | 45 | runs-on: ubuntu-22.04 |
24 | 46 | container: golang:1.22 |
25 | 47 | steps: |
| 48 | + - name: Configure jetstack/venafi-connection-lib repo pull access |
| 49 | + run: | |
| 50 | + mkdir ~/.ssh |
| 51 | + chmod 700 ~/.ssh |
| 52 | +
|
| 53 | + echo "${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }}" > ~/.ssh/venafi_connection_lib_id |
| 54 | + chmod 600 ~/.ssh/venafi_connection_lib_id |
| 55 | +
|
| 56 | + cat <<EOT >> ~/.ssh/config |
| 57 | + Host venafi-connection-lib.github.com |
| 58 | + HostName github.com |
| 59 | + IdentityFile ~/.ssh/venafi_connection_lib_id |
| 60 | + IdentitiesOnly yes |
| 61 | + EOT |
| 62 | +
|
| 63 | + cat <<EOT >> ~/.gitconfig |
| 64 | + [url "git@venafi-connection-lib.github.com:jetstack/venafi-connection-lib"] |
| 65 | + insteadOf = https://github.com/jetstack/venafi-connection-lib |
| 66 | + EOT |
26 | 67 | - uses: actions/checkout@v4 |
27 | 68 | - run: make test |
28 | 69 | docker_build: |
|
39 | 80 | DOCKER_DRIVER: overlay |
40 | 81 | DOCKER_HOST: tcp://localhost:2375 |
41 | 82 | steps: |
| 83 | + - name: Configure jetstack/venafi-connection-lib repo pull access |
| 84 | + run: | |
| 85 | + mkdir ~/.ssh |
| 86 | + chmod 700 ~/.ssh |
| 87 | +
|
| 88 | + echo "${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }}" > ~/.ssh/venafi_connection_lib_id |
| 89 | + chmod 600 ~/.ssh/venafi_connection_lib_id |
| 90 | +
|
| 91 | + cat <<EOT >> ~/.ssh/config |
| 92 | + Host venafi-connection-lib.github.com |
| 93 | + HostName github.com |
| 94 | + IdentityFile ~/.ssh/venafi_connection_lib_id |
| 95 | + IdentitiesOnly yes |
| 96 | + EOT |
| 97 | +
|
| 98 | + cat <<EOT >> ~/.gitconfig |
| 99 | + [url "git@venafi-connection-lib.github.com:jetstack/venafi-connection-lib"] |
| 100 | + insteadOf = https://github.com/jetstack/venafi-connection-lib |
| 101 | + EOT |
42 | 102 | - name: Install Tools |
43 | 103 | run: apk add --update make git jq rsync curl |
44 | 104 | - name: Adding github workspace as safe directory |
|
0 commit comments