Add '.gitlab/' from commit '74a4a4e77f5fa40b486ae9b94a91e53b3ace5d65'
git-subtree-dir: .gitlab git-subtree-mainline:cf52f55957git-subtree-split:74a4a4e77f
This commit is contained in:
10
.gitlab/Makefile
Normal file
10
.gitlab/Makefile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
IMAGE ?= $(shell cat IMAGE):$(shell cat VERSION)
|
||||||
|
IMAGE_LATEST ?= $(shell cat IMAGE):latest
|
||||||
|
PWD ?= $(shell pwd)
|
||||||
|
|
||||||
|
include .gitlab/make/docker.makefile
|
||||||
|
include .gitlab/make/helm.makefile
|
||||||
|
include .gitlab/make/kaniko.makefile
|
||||||
|
include .gitlab/make/truenas.makefile
|
||||||
10
.gitlab/README.md
Normal file
10
.gitlab/README.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Adding the "common" subtree as your .gitlab folder
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Add the subtree as a remote
|
||||||
|
git remote add common git@gitlab.ducoterra.net:services/common.git
|
||||||
|
git subtree add --prefix .gitlab common main
|
||||||
|
|
||||||
|
# Now you can run the following to update
|
||||||
|
git subtree pull --prefix .gitlab common main
|
||||||
|
```
|
||||||
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
|
||||||
4
.gitlab/make/helm.makefile
Normal file
4
.gitlab/make/helm.makefile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
.PHONY: helm-release
|
||||||
|
helm-release:
|
||||||
|
@yq e ".version = \"$(shell cat VERSION)\"" -i helm/Chart.yaml
|
||||||
|
@yq e ".appVersion = \"$(shell cat VERSION)\"" -i helm/Chart.yaml
|
||||||
0
.gitlab/make/kaniko.makefile
Normal file
0
.gitlab/make/kaniko.makefile
Normal file
3
.gitlab/make/truenas.makefile
Normal file
3
.gitlab/make/truenas.makefile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.PHONY: chart-release
|
||||||
|
chart-release:
|
||||||
|
@rsync -av $(CHART)/helm/ charts/$(CHART)/$(shell cat $(CHART)/VERSION)/
|
||||||
Reference in New Issue
Block a user