update ci config

This commit is contained in:
2022-08-05 22:55:59 +08:00
parent fb312c376a
commit ee8e19343b

View File

@@ -2,11 +2,10 @@ variables:
# Package version can only contain numbers (0-9), and dots (.).
# Must be in the format of X.Y.Z, i.e. should match /\A\d+\.\d+\.\d+\z/ regular expresion.
# See https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file
PACKAGE_VERSION: "1.3.0"
PACKAGE_VERSION: "1.3.1"
LINUX_AMD64_BINARY: "console-${PACKAGE_VERSION}"
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/cobalt-strike/${PACKAGE_VERSION}"
CI_COMMIT_TAG: "1.3.0"
POD_VERSION: "1-3-0"
CI_COMMIT_TAG: "1.3.1"
stages:
- build
@@ -32,6 +31,8 @@ docker_build:
- docker tag console:${PACKAGE_VERSION} reg.sre.victor-core.top/cobalt-strike/console:${PACKAGE_VERSION}
- echo Precinct7460|docker login reg.sre.victor-core.top -u sangge --password-stdin
- docker push reg.sre.victor-core.top/cobalt-strike/console:${PACKAGE_VERSION}
tags:
- cluster
release:
stage: release
@@ -51,4 +52,7 @@ docker_deploy:
# - kubectl apply -f traefik-config.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
# - kubectl apply -f ingressrouter.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
- kubectl create deployment console --image=reg.sre.victor-core.top/cobalt-strike/console:1.3.0 --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem --port=4444
- kubectl expose deployment console --type=NodePort --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
- kubectl expose deployment console --type=NodePort --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
tags:
- cluster