Skip to content

Commit

Permalink
Always use latest tailscale
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdanielsson committed Nov 13, 2023
1 parent c01ccde commit 7fdee47
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/run-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,19 @@ jobs:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
TS_AUTHKEY: op://prod/ts-authkey-ci/credential

- name: Get latest Tailscale version
id: get_latest_ts_version
run: |
echo "::set-output name=ts_latest::$(curl --silent https://api.github.com/repos/tailscale/tailscale/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^"]+)\".*/\1/' | sed 's/^v\(.*\)/\1/')"
- name: Print latest Tailscale version
run: |
echo ${{ steps.get_latest_ts_version.outputs.ts_latest }}
- name: Setup Tailscale
uses: tailscale/github-action@v2
with:
version: '1.50.1'
version: ${{ steps.get_latest_ts_version.outputs.ts_latest }}
authkey: ${{ steps.op-load-ts-authkey.outputs.TS_AUTHKEY }}
tags: tag:ci
args: --ssh
Expand All @@ -71,4 +80,3 @@ jobs:
ansible-playbook -i inventory.yml hogsmeade.yml
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

0 comments on commit 7fdee47

Please sign in to comment.