Skip to content

Commit

Permalink
Rewrite jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Nov 30, 2023
1 parent 26f37c6 commit 278e479
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: stable
- run: flyctl secrets set --stage TAILSCALE_AUTHKEY=$(go run tailscale.com/cmd/get-authkey@main -ephemeral -tags tag:local)
- id: tailscale
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
TS_API_CLIENT_ID: ${{ secrets.TS_API_CLIENT_ID }}
TS_API_CLIENT_SECRET: ${{ secrets.TS_API_CLIENT_SECRET }}
run: |
auth_key=$(go run tailscale.com/cmd/get-authkey@main -ephemeral -tags tag:local)
echo "::add-mask::$auth_key"
echo "auth-key=$auth_key" >> "$GITHUB_OUTPUT"
- run: flyctl secrets set --stage TAILSCALE_AUTHKEY=${{ steps.tailscale.outputs.auth-key }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 278e479

Please sign in to comment.