Skip to content

Commit f6522fe

Browse files
committed
use local registry for envbuilder
1 parent 034d452 commit f6522fe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

GNUmakefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,20 @@ test-registry-container: .registry-cache
4141

4242
# Pulls images referenced in integration tests and pushes them to the local cache.
4343
.PHONY: test-images-push
44-
test-images-push: .registry-cache/docker/registry/v2/repositories/test-ubuntu
44+
test-images-push: .registry-cache/docker/registry/v2/repositories/test-ubuntu .registry-cache/docker/registry/v2/repositories/test-envbuilder
4545

4646
.PHONY: test-images-pull
4747
test-images-pull:
4848
docker pull ubuntu:latest
4949
docker tag ubuntu:latest localhost:5000/test-ubuntu:latest
50+
docker pull ghcr.io/coder/envbuilder:latest
51+
docker tag ghcr.io/coder/envbuilder:latest localhost:5000/envbuilder:latest
5052

5153
.registry-cache:
5254
mkdir -p .registry-cache && chmod -R ag+w .registry-cache
5355

5456
.registry-cache/docker/registry/v2/repositories/test-ubuntu:
5557
docker push localhost:5000/test-ubuntu:latest
58+
59+
.registry-cache/docker/registry/v2/repositories/test-envbuilder:
60+
docker push localhost:5000/envbuilder:latest

internal/provider/provider_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func quote(s string) string {
7474
func setup(ctx context.Context, t testing.TB, files map[string]string) testDependencies {
7575
t.Helper()
7676

77-
envbuilderImage := getEnvOrDefault("ENVBUILDER_IMAGE", "ghcr.io/coder/envbuilder")
77+
envbuilderImage := getEnvOrDefault("ENVBUILDER_IMAGE", "localhost:5000/envbuilder")
7878
envbuilderVersion := getEnvOrDefault("ENVBUILDER_VERSION", "latest")
7979
envbuilderImageRef := envbuilderImage + ":" + envbuilderVersion
8080

0 commit comments

Comments
 (0)