Add '.gitlab/' from commit '8a52a21a398f3bb2840e76e26f065a7963c79efa'
git-subtree-dir: .gitlab git-subtree-mainline:d249e35463git-subtree-split:8a52a21a39
This commit is contained in:
9
.gitlab/Makefile
Normal file
9
.gitlab/Makefile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
IMAGE ?= $(shell cat IMAGE):$(shell cat VERSION)
|
||||||
|
IMAGE_LATEST ?= $(shell cat IMAGE):latest
|
||||||
|
PWD ?= $(shell pwd)
|
||||||
|
|
||||||
|
include make/docker.makefile
|
||||||
|
include make/kaniko.makefile
|
||||||
|
include make/truenas.makefile
|
||||||
26
.gitlab/make/docker.makefile
Normal file
26
.gitlab/make/docker.makefile
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
.PHONY: docker-init
|
||||||
|
docker-init:
|
||||||
|
@touch VERSION
|
||||||
|
@touch IMAGE
|
||||||
|
|
||||||
|
.PHONY: buildx-context
|
||||||
|
buildx-context:
|
||||||
|
docker buildx create --name arm64 --use --platform linux/amd64,linux/arm64
|
||||||
|
|
||||||
|
.PHONY: buildx-clear
|
||||||
|
buildx-clear:
|
||||||
|
docker buildx rm arm64
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build:
|
||||||
|
docker buildx build --load . -t $(IMAGE)
|
||||||
|
@docker buildx build --load . -t $(IMAGE_LATEST)
|
||||||
|
|
||||||
|
.PHONY: push
|
||||||
|
push:
|
||||||
|
docker buildx build --platform linux/amd64 --push . -t $(IMAGE)
|
||||||
|
@docker buildx build --platform linux/amd64 --push . -t $(IMAGE_LATEST)
|
||||||
|
|
||||||
|
.PHONY: run
|
||||||
|
run:
|
||||||
|
docker run -it -v $(PWD):/mc_data $(IMAGE) bash
|
||||||
0
.gitlab/make/kaniko.makefile
Normal file
0
.gitlab/make/kaniko.makefile
Normal file
0
.gitlab/make/truenas.makefile
Normal file
0
.gitlab/make/truenas.makefile
Normal file
Reference in New Issue
Block a user