This commit is contained in:
w-mj 2023-03-12 12:03:52 +08:00
parent bbe4c7a12d
commit 757a4b93c5
No known key found for this signature in database
GPG Key ID: 3A2CB5BE2F835897
2 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,7 @@ build:
image: docker:latest
stage: build
tags:
- Machine0
- dind-runner
only:
- tags
script:

View File

@ -1,4 +1,5 @@
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:v1.1.4
TAG ?= v1.1.9
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG)
build: export CGO_ENABLED=0
build: export GOOS=linux
@ -21,3 +22,10 @@ restart: docker
push: docker
docker push $(IMAGE_TAG)
tag:
git add .
git commit -m $(TAG)
git tag $(TAG)
git push origin master
git push origin $(TAG)