From 92f2a88b14b312dffbf26d8d08392a43583fd9d5 Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Thu, 24 Dec 2020 11:52:56 +0100 Subject: [PATCH] tools(make): add pull and run --- Makefile | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 9a812bc..7434c3e 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,37 @@ -.PHONY: fedora ubuntu packages package-kubectl package-starship all -fedora: +.PHONY: build-fedora +build-fedora: @docker buildx build --load -t env-fedora -f Dockerfile.fedora . -ubuntu: +.PHONY: build-ubuntu +build-ubuntu: @docker buildx build --load -t env-ubuntu -f Dockerfile.ubuntu . -package-starship: +.PHONY: build-package-starship +build-package-starship: @docker buildx build --load -t starship -f packages/Dockerfile.starship packages/ -package-kubectl: +.PHONY: build-package-kubectl +build-package-kubectl: @docker buildx build --load -t kubectl -f packages/Dockerfile.kubectl packages/ -packages: package-kubectl package-starship +.PHONY: build-packages +build-packages: package-kubectl package-starship -all: packages fedora ubuntu +build: packages fedora ubuntu +.PHONY: template template: @go run ./main.go template package-action > .github/workflows/packages.yaml @go run ./main.go template ubuntu-action > .github/workflows/ubuntu.yaml @go run ./main.go template fedora-action > .github/workflows/fedora.yaml +pull: + @docker pull ghcr.io/mentos1386/workspace-fedora:edge + #@docker pull ghcr.io/mentos1386/workspace-ubuntu:edge + @docker pull ghcr.io/mentos1386/starship:0.47.0 + @docker pull ghcr.io/mentos1386/kubectl:1.20.0 + +run-fedora: + @docker run -it --rm --workdir /home/tine --user tine ghcr.io/mentos1386/workspace-fedora:edge zsh +