Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
072bee6e27 | ||
|
|
e6a042948b | ||
|
|
7df518d7db | ||
|
|
ca4d1eeb45 | ||
|
|
1ccc5cda35 |
@@ -1,7 +1,7 @@
|
||||
variables:
|
||||
CI_PROJECT_NAME: "minecraft"
|
||||
CI_PROJECT_DIR: "."
|
||||
CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/homer
|
||||
CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/minecraft
|
||||
|
||||
stages:
|
||||
- build
|
||||
@@ -35,4 +35,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
|
||||
- chmod +x /usr/local/bin/kubectl
|
||||
- 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 ./helm | kubectl apply -f -
|
||||
@@ -1,7 +1,5 @@
|
||||
FROM openjdk:8-slim
|
||||
|
||||
RUN apt update && apt install -y rsync
|
||||
|
||||
WORKDIR /mc_server
|
||||
COPY ./server .
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ version: '3'
|
||||
services:
|
||||
minecraft:
|
||||
build: .
|
||||
image: hub.ducoterra.net/ducoterra/minecraft:1.15.2_1
|
||||
ports:
|
||||
- 25565:25565
|
||||
volumes:
|
||||
|
||||
@@ -13,7 +13,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Release.Name }}
|
||||
image: {{ .Values.image }}
|
||||
image: {{ .Values.image }}:{{ .Values.tag }}
|
||||
ports:
|
||||
- containerPort: 25565
|
||||
volumeMounts:
|
||||
|
||||
@@ -6,7 +6,7 @@ spec:
|
||||
selector:
|
||||
app: {{ .Release.Name }}
|
||||
ports:
|
||||
- port: 25565
|
||||
- port: {{ .Values.port }}
|
||||
targetPort: 25565
|
||||
name: {{ .Release.Name }}
|
||||
type: LoadBalancer
|
||||
@@ -1 +1,2 @@
|
||||
image: hub.ducoterra.net/ducoterra/minecraft:1.15.2_1
|
||||
image: hub.ducoterra.net/ducoterra/minecraft
|
||||
port: 25565
|
||||
Binary file not shown.
@@ -25,7 +25,7 @@ server-ip=
|
||||
spawn-npcs=true
|
||||
allow-flight=true
|
||||
level-name=world
|
||||
view-distance=20
|
||||
view-distance=32
|
||||
resource-pack=
|
||||
spawn-animals=true
|
||||
white-list=true
|
||||
|
||||
Reference in New Issue
Block a user