Skip to content

Commit e0d7f66

Browse files
committed
renew tailscale cert each run
1 parent 2117343 commit e0d7f66

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v3
2727

28+
- name: Renew Tailscale certificate
29+
run: |
30+
cd ~/cert
31+
HOSTNAME=$(hostname)
32+
sudo tailscale cert ${HOSTNAME}.boston-cloud.ts.net
33+
sudo openssl pkcs12 -export -out certificate.pfx -inkey ${HOSTNAME}.boston-cloud.ts.net.key -in ${HOSTNAME}.boston-cloud.ts.net.crt -passout pass:
34+
sudo chown piuser. certificate.pfx
35+
2836
- name: Docker compose pull
2937
run: docker-compose pull
3038

0 commit comments

Comments
 (0)