Updated to gitea registry
This commit is contained in:
19
Makefile
19
Makefile
@@ -94,7 +94,8 @@ refresh: docker-refresh
|
||||
|
||||
build: version=$(if $(v),$(v),latest)
|
||||
build: folder=$(if $(f),$(f),nginx)
|
||||
build: image=aviation-${folder}:${version}
|
||||
build: registry=$(if $(r),$(r),gitea.bensherriff.com/bsherriff)
|
||||
build: image=${registry}/aviation-${folder}:${version}
|
||||
build: ## Build a specific docker image (`make build f=httpd`)
|
||||
docker buildx build \
|
||||
-f ${folder}/Dockerfile \
|
||||
@@ -105,7 +106,21 @@ build: ## Build a specific docker image (`make build f=httpd`)
|
||||
--build-arg VCS_REF=$$(git rev-parse HEAD) \
|
||||
${folder}
|
||||
|
||||
docker-build: build
|
||||
push: version=$(if $(v),$(v),latest)
|
||||
push: folder=$(if $(f),$(f),nginx)
|
||||
push: registry=$(if $(r),$(r),gitea.bensherriff.com/bsherriff)
|
||||
push: platform=$(if $(p),$(p),linux/amd64,linux/arm64)
|
||||
push: image=${registry}/aviation-${folder}:${version}
|
||||
push: ## Build and push a specific docker image (`make push f=httpd`)
|
||||
docker buildx build \
|
||||
-f ${folder}/Dockerfile \
|
||||
--platform ${platform} \
|
||||
-t ${image} \
|
||||
--push \
|
||||
--build-arg BUILD_DATE=$$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
||||
--build-arg BUILD_VERSION=${version} \
|
||||
--build-arg VCS_REF=$$(git rev-parse HEAD) \
|
||||
${folder}
|
||||
|
||||
cert: domain=$(if $(d),$(d),${NGINX_HOST})
|
||||
cert: ## Generate a cert for the given domain
|
||||
|
||||
Reference in New Issue
Block a user