ci: tailscale workflow now tests acl before deploying regardless of event
This commit is contained in:
parent
92f6e3ca99
commit
f4cef157f1
1 changed files with 7 additions and 8 deletions
|
|
@ -23,6 +23,13 @@ jobs:
|
||||||
key: version-cache.json-${{ github.run_id }}
|
key: version-cache.json-${{ github.run_id }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
version-cache.json-
|
version-cache.json-
|
||||||
|
- name: test acl
|
||||||
|
id: test-acl
|
||||||
|
uses: https://github.com/tailscale/gitops-acl-action@v1.3.1
|
||||||
|
with:
|
||||||
|
api-key: ${{ secrets.TS_API_KEY }}
|
||||||
|
tailnet: ${{ secrets.TS_TAILNET }}
|
||||||
|
action: test
|
||||||
- name: deploy acl
|
- name: deploy acl
|
||||||
if: forgejo.event_name == 'push'
|
if: forgejo.event_name == 'push'
|
||||||
id: deploy-acl
|
id: deploy-acl
|
||||||
|
|
@ -31,11 +38,3 @@ jobs:
|
||||||
api-key: ${{ secrets.TS_API_KEY }}
|
api-key: ${{ secrets.TS_API_KEY }}
|
||||||
tailnet: ${{ secrets.TS_TAILNET }}
|
tailnet: ${{ secrets.TS_TAILNET }}
|
||||||
action: apply
|
action: apply
|
||||||
- name: test acl
|
|
||||||
if: forgejo.event_name == 'pull_request'
|
|
||||||
id: test-acl
|
|
||||||
uses: https://github.com/tailscale/gitops-acl-action@v1.3.1
|
|
||||||
with:
|
|
||||||
api-key: ${{ secrets.TS_API_KEY }}
|
|
||||||
tailnet: ${{ secrets.TS_TAILNET }}
|
|
||||||
action: test
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue