Added tailscale configuration to dotfiles
Renamed file to correct filename Fixed configuration error Removed empty user string Tests? Fixing syntax errors Fixing syntax errors Added to tests More syntax errors Fixing Almost there Trying something Removed all oasys references
This commit is contained in:
parent
dbae5eb0b3
commit
02a0c33247
2 changed files with 99 additions and 0 deletions
40
.github/workflows/tailscale.yml
vendored
Normal file
40
.github/workflows/tailscale.yml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
name: Sync Tailscale ACLs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
acls:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Fetch version-cache.json
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ./version-cache.json
|
||||
key: version-cache.json-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
version-cache.json-
|
||||
|
||||
- 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 }}
|
||||
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 }}
|
||||
action: test
|
||||
Loading…
Add table
Add a link
Reference in a new issue