mirror of
https://github.com/juanfont/headscale.git
synced 2026-05-23 18:48:42 +09:00
tsic: pull tailscale images from ghcr.io
Anonymous reads on ghcr.io are unmetered. Pulling tailscale/tailscale from Docker Hub fails on fork PRs without DOCKERHUB_USERNAME because the unauthenticated rate limit is hit at test time. ghcr.io/tailscale/tailscale publishes the same tags. The cache-hit short-circuit in dockertestutil.PullWithAuth still skips the pull when the image is already loaded locally, so the change is a no-op once CI pre-pulls the images.
This commit is contained in:
@@ -522,7 +522,7 @@ func New(
|
||||
}
|
||||
}
|
||||
case "unstable":
|
||||
tailscaleOptions.Repository = "tailscale/tailscale"
|
||||
tailscaleOptions.Repository = "ghcr.io/tailscale/tailscale"
|
||||
tailscaleOptions.Tag = version
|
||||
|
||||
err = dockertestutil.PullWithAuth(pool, tailscaleOptions.Repository+":"+tailscaleOptions.Tag)
|
||||
@@ -542,7 +542,7 @@ func New(
|
||||
log.Printf("Docker run failed for %s (unstable), error: %v", hostname, err)
|
||||
}
|
||||
default:
|
||||
tailscaleOptions.Repository = "tailscale/tailscale"
|
||||
tailscaleOptions.Repository = "ghcr.io/tailscale/tailscale"
|
||||
tailscaleOptions.Tag = "v" + version
|
||||
|
||||
err = dockertestutil.PullWithAuth(pool, tailscaleOptions.Repository+":"+tailscaleOptions.Tag)
|
||||
|
||||
Reference in New Issue
Block a user