|
91 | 91 | deploy: |
92 | 92 | runs-on: ubuntu-latest |
93 | 93 | steps: |
| 94 | + - name: clone repository |
| 95 | + uses: actions/checkout@v4 |
| 96 | + |
| 97 | + - name: Tailscale VPN |
| 98 | + uses: tailscale/github-action@v2 |
| 99 | + if: inputs.enableVpn == 'true' |
| 100 | + with: |
| 101 | + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} |
| 102 | + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} |
| 103 | + tags: tag:ci |
| 104 | + version: 1.76.1 |
| 105 | + |
| 106 | + # Bug https://github.com/tailscale/github-action/issues/107 |
| 107 | + #- name: Tailscale sleep workaround |
| 108 | + # run: | |
| 109 | + # sleep 10 |
| 110 | + |
94 | 111 | - name: Send notification to slack |
95 | 112 | if: inputs.slackChannelId != '' |
96 | 113 | |
@@ -131,9 +148,6 @@ jobs: |
131 | 148 | ] |
132 | 149 | } |
133 | 150 |
|
134 | | - - name: clone repository |
135 | | - uses: actions/checkout@v4 |
136 | | - |
137 | 151 | # There is no public action that would give us the abilities we need. Meaning: |
138 | 152 | # - helmfile |
139 | 153 | # - eksctl |
@@ -187,20 +201,6 @@ jobs: |
187 | 201 | - name: setup kubeconfig |
188 | 202 | run: aws eks update-kubeconfig --name ${{ inputs.eksClusterName }} $OPTIONAL_PARAMS |
189 | 203 |
|
190 | | - - name: Tailscale VPN |
191 | | - uses: tailscale/github-action@v2 |
192 | | - if: inputs.enableVpn == 'true' |
193 | | - with: |
194 | | - oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} |
195 | | - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} |
196 | | - tags: tag:ci |
197 | | - version: 1.76.1 |
198 | | - |
199 | | - # Bug https://github.com/tailscale/github-action/issues/107 |
200 | | - - name: Tailscale sleep workaround |
201 | | - run: | |
202 | | - sleep 10 |
203 | | -
|
204 | 204 | - name: helmfile ${{ inputs.helmfileCommand }} |
205 | 205 | run: | |
206 | 206 | export $(echo ${{ inputs.envVariables }}) |
|
0 commit comments