This commit is contained in:
Smart-SangGe 2022-08-04 08:41:09 +08:00
parent 26f09715da
commit d49e5507f1
2 changed files with 15 additions and 2 deletions

View File

@ -40,7 +40,7 @@ release:
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- |
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name CI_COMMIT_TAG \
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \
--assets-link "{\"name\":\"${LINUX_AMD64_BINARY}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}\"}"
docker_deploy:
@ -49,6 +49,7 @@ docker_deploy:
name: bitnami/kubectl
entrypoint: [""]
script:
- kubectl run console-${POD_VERSION} --image=reg.sre.victor-core.top/cobalt-strike/console:${PACKAGE_VERSION} --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
# - kubectl run console-${POD_VERSION} --image=reg.sre.victor-core.top/cobalt-strike/console:${PACKAGE_VERSION} --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
- kubectl apply -f deploy.yaml
tags:
- cluster

12
deploy.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: console
labels:
app: console
sepc:
containers:
- name: console
image: reg.sre.victor-core.top/cobalt-strike/console:1.3.0
ports:
- containerPort: 4444