Skip to content

update tailscale acl #4

update tailscale acl

update tailscale acl #4

Workflow file for this run

name: Sync Tailscale ACLs
on:
push:
branches: [ "master" ]
paths:
- "tailscale.policy.json"
- ".github/workflows/tailscale.yml"
pull_request:
branches: [ "master" ]
paths:
- "tailscale.policy.json"
- ".github/workflows/tailscale.yml"
jobs:
acls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy ACL
if: github.event_name == 'push'
id: deploy-acl
uses: tailscale/gitops-acl-action@v1
with:
api-key: ${{ secrets.TS_API_KEY }}
tailnet: ${{ secrets.TS_TAILNET }}
policy-file: tailscale.policy.json
action: apply
- name: Test ACL
if: github.event_name == 'pull_request'
id: test-acl
uses: tailscale/gitops-acl-action@v1
with:
api-key: ${{ secrets.TS_API_KEY }}
tailnet: ${{ secrets.TS_TAILNET }}
policy-file: tailscale.policy.json
action: test