mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 09:17:08 +00:00
20 lines
466 B
Makefile
20 lines
466 B
Makefile
VERSION=1.0
|
|
USER=opennetworklinux
|
|
REPO=builder10
|
|
|
|
TOOLS=../../../tools/docker_shell ../../../tools/container-id
|
|
|
|
build: check_version
|
|
cp $(TOOLS) .
|
|
docker build -t $(USER)/$(REPO):$(VERSION) .
|
|
rm -rf $(notdir $(TOOLS))
|
|
|
|
#
|
|
# Todo: Query remote repository to see if the request version already exists to avoid accidental overwrites
|
|
# when a new image is built but the VERSION variable is not updated.
|
|
#
|
|
check_version:
|
|
|
|
push:
|
|
docker push $(USER)/$(REPO):$(VERSION)
|