5 Commits

Author SHA1 Message Date
ducoterra
725561dc9c add port to values 2020-06-15 21:47:24 -04:00
ducoterra
8d4a027a07 add image name 2020-05-16 18:19:40 -04:00
ducoterra
77286b1cad pull from proper image 2020-05-16 12:56:20 -04:00
ducoterra
58d44d42b3 use tag 2020-05-16 12:47:39 -04:00
ducoterra
935890e1d9 fix tagging 2020-05-16 12:43:07 -04:00
3 changed files with 4 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ variables:
CI_PROJECT_NAME: "pubcraft" CI_PROJECT_NAME: "pubcraft"
CI_PROJECT_DIR: "." CI_PROJECT_DIR: "."
CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/pubcraft CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/pubcraft
DEPLOY_PORT: 20100
stages: stages:
- build - build
@@ -35,4 +36,4 @@ deploy_to_prod:
- curl -L -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl - curl -L -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
- chmod +x /usr/local/bin/kubectl - chmod +x /usr/local/bin/kubectl
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash - curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- helm template $CI_PROJECT_NAME --set tag=1.1.1 ./helm | kubectl apply -f - - helm template $CI_PROJECT_NAME --set tag=$CI_COMMIT_TAG --set image=$CI_REGISTRY_IMAGE --set port=$DEPLOY_PORT ./helm | kubectl apply -f -

View File

@@ -13,7 +13,7 @@ spec:
spec: spec:
containers: containers:
- name: {{ .Release.Name }} - name: {{ .Release.Name }}
image: {{ .Values.image }} image: {{ .Values.image }}:{{ .Values.tag }}
ports: ports:
- containerPort: 25565 - containerPort: 25565
volumeMounts: volumeMounts:

View File

@@ -1,2 +1,2 @@
image: hub.ducoterra.net/ducoterra/minecraft:1.15.2_1 image: hub.ducoterra.net/ducoterra/pubcraft
port: 20100 port: 20100