2020-12-24 13:51:49 +00:00
|
|
|
REGISTRY=ghcr.io/mentos1386
|
2020-12-25 17:32:27 +00:00
|
|
|
PROGRESS=plain
|
|
|
|
|
2020-12-24 13:51:49 +00:00
|
|
|
|
|
|
|
build:
|
2020-12-26 14:00:26 +00:00
|
|
|
@docker buildx build --load -t ${REGISTRY}/workspace:edge -f Dockerfile .
|
2020-12-23 17:55:00 +00:00
|
|
|
|
2020-12-24 10:52:56 +00:00
|
|
|
build-package-starship:
|
2020-12-26 14:06:07 +00:00
|
|
|
@docker buildx build --load -t ${REGISTRY}/starship:0.47.0 -f packages/Dockerfile.starship .
|
2020-12-23 18:45:44 +00:00
|
|
|
|
2020-12-24 10:52:56 +00:00
|
|
|
build-package-kubectl:
|
2020-12-26 14:06:07 +00:00
|
|
|
@docker buildx build --load -t ${REGISTRY}/kubectl:1.20.0 -f packages/Dockerfile.kubectl .
|
2020-12-23 18:45:44 +00:00
|
|
|
|
2020-12-25 15:04:39 +00:00
|
|
|
build-package-glow:
|
2020-12-26 14:06:07 +00:00
|
|
|
@docker buildx build --load -t ${REGISTRY}/glow:1.3.0 -f packages/Dockerfile.glow .
|
2020-12-25 15:58:23 +00:00
|
|
|
|
|
|
|
build-package-mosh:
|
2020-12-26 14:06:07 +00:00
|
|
|
@docker buildx build --progress ${PROGRESS} --load -t ${REGISTRY}/mosh:master -f packages/Dockerfile.mosh .
|
2020-12-25 15:04:39 +00:00
|
|
|
|
2020-12-24 10:52:56 +00:00
|
|
|
build-packages: package-kubectl package-starship
|
2020-12-23 17:55:00 +00:00
|
|
|
|
2020-12-23 21:08:25 +00:00
|
|
|
template:
|
|
|
|
@go run ./main.go template package-action > .github/workflows/packages.yaml
|
2020-12-26 14:00:26 +00:00
|
|
|
@go run ./main.go template workspace-action > .github/workflows/workspace.yaml
|
2020-12-23 21:08:25 +00:00
|
|
|
|
2020-12-24 10:52:56 +00:00
|
|
|
pull:
|
2020-12-26 16:01:48 +00:00
|
|
|
@docker pull ghcr.io/mentos1386/workspace:edge
|
2020-12-24 10:52:56 +00:00
|
|
|
|
2020-12-24 13:51:49 +00:00
|
|
|
run:
|
2020-12-26 14:00:26 +00:00
|
|
|
@docker run -it --rm --workdir /home/tine --user tine ghcr.io/mentos1386/workspace:edge zsh
|
2020-12-24 10:52:56 +00:00
|
|
|
|
2020-12-26 22:00:13 +00:00
|
|
|
run-root:
|
|
|
|
@docker run -it --rm --workdir /home/tine --user root ghcr.io/mentos1386/workspace:edge zsh
|
|
|
|
|