@@ -13,15 +13,14 @@ jobs:
1313 runs-on : ubuntu-latest
1414 environment : Production
1515
16- strategy :
17- matrix :
18- node-version : [22.x]
19- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20-
2116 steps :
2217 - uses : actions/checkout@v4
2318 - name : Set up Docker Buildx
2419 uses : docker/setup-buildx-action@v3
20+ with :
21+ buildkitd-config-inline : |
22+ [registry."relisten2.tail09dbf.ts.net:32000"]
23+ http = true
2524
2625 - name : Setup Tailscale
2726 uses : tailscale/github-action@v3
4039
4140 - name : Push to registry over Tailscale network
4241 run : |
43- # Try pushing with --insecure flag if registry requires it
44- echo "Pushing to registry with insecure flag..."
45- DOCKER_CLI_EXPERIMENTAL=enabled docker push --insecure relisten2.tail09dbf.ts.net:32000/relistennet/relisten-web:latest
46-
47- # If the above fails, try with IP address
48- if [ $? -ne 0 ]; then
49- echo "First attempt failed, trying with IP address..."
50- REGISTRY_IP=$(tailscale status | grep relisten2 | awk '{print $1}')
42+ docker push relisten2.tail09dbf.ts.net:32000/relistennet/relisten-web:latest
5143
52- if [ -n "$REGISTRY_IP" ]; then
53- echo "Using Tailscale IP address: $REGISTRY_IP"
54- # Tag with IP address
55- docker tag relisten2.tail09dbf.ts.net:32000/relistennet/relisten-web:latest $REGISTRY_IP:32000/relistennet/relisten-web:latest
56- # Push using IP with insecure flag
57- DOCKER_CLI_EXPERIMENTAL=enabled docker push --insecure $REGISTRY_IP:32000/relistennet/relisten-web:latest
58- else
59- echo "Failed to get IP address and hostname push failed."
60- exit 1
61- fi
62- fi
6344 - name : Install kubectl
6445 uses : azure/setup-kubectl@v3
6546
0 commit comments