Skip to content

Commit d1c8126

Browse files
committed
chore(github-actions): tweak Tailscale OIDC auth flow to match tags on dashboard
(along other tidbits bts)
1 parent a0926a6 commit d1c8126

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- config/caddy/*
77
- scripts/*
88
- .github/workflows/deploy.yml
9+
- .trigger-deploy
910
workflow_dispatch:
1011

1112
permissions:
@@ -26,10 +27,15 @@ jobs:
2627
- name: Setup Tailscale (using OIDC workload federation)
2728
uses: tailscale/github-action@v4
2829
with:
30+
# Since they are just client IDs, we're publishing them for
31+
# tracking proposes, although we gated them behind production
32+
# deploys here and via Tailscale admin dashboard.
2933
oauth-client-id: TysnXTahJ911CNTRL-knEDkFDtWs11CNTRL
3034
audience: api.tailscale.com/TysnXTahJ911CNTRL-knEDkFDtWs11CNTRL
31-
tags: tag:ci
35+
tags: tag:ci-builds,tag:caddy
3236

3337
- name: Deploy updates to server
3438
run: |
35-
ssh caddy@proxyparty-caddy-production.tuna-skate.ts.net "/var/lib/caddy/src/scripts/deploy-updates"
39+
ssh -o "SetEnv FF_UPDATE_CONTAINER_IMAGE=true" \
40+
caddy@proxyparty-caddy-production.tuna-skate.ts.net \
41+
"/var/lib/caddy/src/scripts/deploy-updates"

0 commit comments

Comments
 (0)