mirror of
https://github.com/coder/terraform-provider-envbuilder.git
synced 2025-06-28 07:36:42 +00:00
ci: push envbuilder image to local registry (#28)
This commit is contained in:
parent
a2a5fcf79b
commit
f8a49e84ff
2 changed files with 7 additions and 2 deletions
|
@ -41,15 +41,20 @@ test-registry-container: .registry-cache
|
|||
|
||||
# Pulls images referenced in integration tests and pushes them to the local cache.
|
||||
.PHONY: test-images-push
|
||||
test-images-push: .registry-cache/docker/registry/v2/repositories/test-ubuntu
|
||||
test-images-push: .registry-cache/docker/registry/v2/repositories/test-ubuntu .registry-cache/docker/registry/v2/repositories/envbuilder
|
||||
|
||||
.PHONY: test-images-pull
|
||||
test-images-pull:
|
||||
docker pull ubuntu:latest
|
||||
docker tag ubuntu:latest localhost:5000/test-ubuntu:latest
|
||||
docker pull ghcr.io/coder/envbuilder-preview:latest
|
||||
docker tag ghcr.io/coder/envbuilder-preview:latest localhost:5000/envbuilder:latest
|
||||
|
||||
.registry-cache:
|
||||
mkdir -p .registry-cache && chmod -R ag+w .registry-cache
|
||||
|
||||
.registry-cache/docker/registry/v2/repositories/test-ubuntu:
|
||||
docker push localhost:5000/test-ubuntu:latest
|
||||
|
||||
.registry-cache/docker/registry/v2/repositories/envbuilder:
|
||||
docker push localhost:5000/envbuilder:latest
|
|
@ -74,7 +74,7 @@ func quote(s string) string {
|
|||
func setup(ctx context.Context, t testing.TB, files map[string]string) testDependencies {
|
||||
t.Helper()
|
||||
|
||||
envbuilderImage := getEnvOrDefault("ENVBUILDER_IMAGE", "ghcr.io/coder/envbuilder-preview")
|
||||
envbuilderImage := getEnvOrDefault("ENVBUILDER_IMAGE", "localhost:5000/envbuilder")
|
||||
envbuilderVersion := getEnvOrDefault("ENVBUILDER_VERSION", "latest")
|
||||
envbuilderImageRef := envbuilderImage + ":" + envbuilderVersion
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue