diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1e339c..7ca1e38 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file diff --git a/deploy.yaml b/deploy.yaml new file mode 100644 index 0000000..891ae89 --- /dev/null +++ b/deploy.yaml @@ -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