mirror of
https://github.com/coder/terraform-provider-envbuilder.git
synced 2025-10-09 00:40:19 +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
|
Loading…
Add table
Add a link
Reference in a new issue