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 image: docker:latest
stage: build stage: build
tags: tags:
- Machine0 - dind-runner
only: only:
- tags - tags
script: 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 CGO_ENABLED=0
build: export GOOS=linux build: export GOOS=linux
@ -20,4 +21,11 @@ restart: docker
kubectl apply -f install.yaml kubectl apply -f install.yaml
push: docker push: docker
docker push $(IMAGE_TAG) docker push $(IMAGE_TAG)
tag:
git add .
git commit -m $(TAG)
git tag $(TAG)
git push origin master
git push origin $(TAG)