diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1212112..d9db2a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ build: image: docker:latest stage: build tags: - - Machine0 + - dind-runner only: - tags script: diff --git a/Makefile b/Makefile index b328ec3..00d31fe 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -20,4 +21,11 @@ restart: docker kubectl apply -f install.yaml push: docker - docker push $(IMAGE_TAG) \ No newline at end of file + docker push $(IMAGE_TAG) + +tag: + git add . + git commit -m $(TAG) + git tag $(TAG) + git push origin master + git push origin $(TAG) \ No newline at end of file