From 3bc4775b4c0f90d2c339805ae3572b2c7672f165 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:18:15 +0100 Subject: [PATCH 01/10] test 1 --- .github/workflows/release.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cf274e..f61f948 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,21 +3,29 @@ name: Pack and Release on: push jobs: - packwizInstall: + setup: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + packwiz: + needs: setup runs-on: ubuntu-latest container: image: bazsalanszky/packwiz-installer steps: - - name: Install Node - run: apk add nodejs git - - name: Checkout code - uses: actions/checkout@v4 + - name: Verify pack.toml existence + run: ls -al - name: Run packwiz installer run: java -jar /packwiz-installer-bootstrap.jar -g "file://$PWD/pack.toml" || exit 1 - name: Install zip run: | apk update apk add zip + release: + needs: packwiz + runs-on: ubuntu-latest + steps: - name: Pack mods.zip run: cd mods && zip mods.zip *.jar - name: Upload mods Artifact @@ -25,4 +33,5 @@ jobs: uses: actions/upload-artifact@v3 with: name: mods - path: mods/mods.zip \ No newline at end of file + path: mods/mods.zip + \ No newline at end of file From 0dd208e235b42af6388665f39af2e6ec239a8efc Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:20:19 +0100 Subject: [PATCH 02/10] test2 --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f61f948..ae81c5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,8 @@ on: push jobs: setup: runs-on: ubuntu-latest + container: + image: nodejs:20 steps: - name: Checkout code uses: actions/checkout@v4 From d1eca479babfcfafdaabb33d74ecf31094896ab3 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:21:13 +0100 Subject: [PATCH 03/10] test 3 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae81c5a..332bfac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ jobs: setup: runs-on: ubuntu-latest container: - image: nodejs:20 + image: nodejs:lts-slim steps: - name: Checkout code uses: actions/checkout@v4 From ffe2b98d8a02fdefe5901b7687df6671696f4b9e Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:21:43 +0100 Subject: [PATCH 04/10] test 4 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 332bfac..b5f45d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ jobs: setup: runs-on: ubuntu-latest container: - image: nodejs:lts-slim + image: node:lts-slim steps: - name: Checkout code uses: actions/checkout@v4 From acd261bba54daf56571d419f008ef80986bfa030 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:24:47 +0100 Subject: [PATCH 05/10] test 5 --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5f45d4..1e95bc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,12 @@ jobs: setup: runs-on: ubuntu-latest container: - image: node:lts-slim + image: alpine steps: + - name: Install Node and Git + run: | + apk update + apk add nodejs git - name: Checkout code uses: actions/checkout@v4 packwiz: From 4fac597886f4c68db61ef5b3b2022f6333873d7e Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:47:05 +0100 Subject: [PATCH 06/10] test 6 --- .github/workflows/release.yml | 39 ++++++++++++++++------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e95bc2..a2308ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,35 +3,21 @@ name: Pack and Release on: push jobs: - setup: - runs-on: ubuntu-latest - container: - image: alpine - steps: - - name: Install Node and Git - run: | - apk update - apk add nodejs git - - name: Checkout code - uses: actions/checkout@v4 - packwiz: - needs: setup + packwizInstall: runs-on: ubuntu-latest container: image: bazsalanszky/packwiz-installer steps: - - name: Verify pack.toml existence - run: ls -al + - name: Install Node + run: apk add nodejs git + - name: Checkout code + uses: actions/checkout@v4 - name: Run packwiz installer run: java -jar /packwiz-installer-bootstrap.jar -g "file://$PWD/pack.toml" || exit 1 - name: Install zip run: | apk update - apk add zip - release: - needs: packwiz - runs-on: ubuntu-latest - steps: + apk add zip - name: Pack mods.zip run: cd mods && zip mods.zip *.jar - name: Upload mods Artifact @@ -40,4 +26,15 @@ jobs: with: name: mods path: mods/mods.zip - \ No newline at end of file + deploy: + needs: packwizInstall + runs-on: ubuntu-latest + steps: + - name: Download mods Artifact + uses: actions/download-artifact@v3 + with: + name: mods + - name: Set up Kubectl + uses: actions/k8s-set-context@v1 + with: + kubeconfig: ${{ secrets.KUBECONFIG }} \ No newline at end of file From 52cced3408e84a23ab834977a0d5c8cdbe67e602 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:49:07 +0100 Subject: [PATCH 07/10] test 7 --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2308ce..3bf9833 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,11 @@ jobs: deploy: needs: packwizInstall runs-on: ubuntu-latest + container: + image: alpine steps: + - name: Install Node + run: apk add nodejs git - name: Download mods Artifact uses: actions/download-artifact@v3 with: From 823dfae4d9bb333d5437250809d5538385272b5e Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:51:30 +0100 Subject: [PATCH 08/10] test 8 --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bf9833..de2cacc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,4 +41,11 @@ jobs: - name: Set up Kubectl uses: actions/k8s-set-context@v1 with: - kubeconfig: ${{ secrets.KUBECONFIG }} \ No newline at end of file + kubeconfig: ${{ secrets.KUBECONFIG }} + - name: Test kubeconfig + run: kubectl get pods -n minecraft + - name: Set up Helm + run: | + curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 + chmod 700 get_helm.sh + ./get_helm.sh \ No newline at end of file From 376f17e93a277602b32bf43480b9879dddd44a19 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:52:56 +0100 Subject: [PATCH 09/10] =?UTF-8?q?Friss=C3=ADtve=20a=20release.yml=20f?= =?UTF-8?q?=C3=A1jl:=20a=20Node=20telep=C3=ADt=C3=A9se=20helyett=20a=20f?= =?UTF-8?q?=C3=BCgg=C5=91s=C3=A9gek=20telep=C3=ADt=C3=A9se=20szerepel,=20b?= =?UTF-8?q?ele=C3=A9rtve=20a=20kubectl-t=20is.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de2cacc..a08447f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,8 +32,8 @@ jobs: container: image: alpine steps: - - name: Install Node - run: apk add nodejs git + - name: Install Dependencies + run: apk add nodejs git kubectl - name: Download mods Artifact uses: actions/download-artifact@v3 with: From f0ad1b66e698883dbd396de7cb084f94003307d0 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Wed, 4 Dec 2024 07:39:56 +0100 Subject: [PATCH 10/10] test 9 Signed-off-by: Balazs Toldi --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a08447f..273587e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,10 +42,14 @@ jobs: uses: actions/k8s-set-context@v1 with: kubeconfig: ${{ secrets.KUBECONFIG }} - - name: Test kubeconfig - run: kubectl get pods -n minecraft - name: Set up Helm run: | curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh - ./get_helm.sh \ No newline at end of file + ./get_helm.sh + - name: Deploy + run: | + helm repo add minecraft-server-charts https://itzg.github.io/minecraft-server-charts/ + helm repo update + helm get values -n ${NAMESPACE} ${HELM_RELEASE_NAME} > values.yaml|| echo "No values found" + #helm upgrade ${HELM_RELEASE_NAME} minecraft-server-charts/minecraft -n ${NAMESPACE} -f values.yaml --set minecraftServer.downloadModpackUrl= \ No newline at end of file