Merge pull request 'pipe line deploy' (#1) from pipe-test into main
Reviewed-on: #1
This commit is contained in:
commit
91abd6472d
5 changed files with 64 additions and 8 deletions
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
|
@ -14,15 +14,41 @@ jobs:
|
|||
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
|
||||
- name: Pack mods.zip
|
||||
run: cd mods && zip mods.zip *.jar
|
||||
- name: Upload mods Artifact
|
||||
if: success()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: mods
|
||||
path: mods/mods.zip
|
||||
path: mods/*.jar
|
||||
deploy:
|
||||
needs: packwizInstall
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: alpine
|
||||
steps:
|
||||
- name: Install Dependencies
|
||||
run: apk add nodejs git kubectl curl bash openssl
|
||||
- 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 }}
|
||||
- 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
|
||||
- name: Add Repo
|
||||
run: |
|
||||
helm repo add minecraft-server-charts https://itzg.github.io/minecraft-server-charts/
|
||||
helm repo update
|
||||
- name: Get values
|
||||
run: |
|
||||
helm ls -n ${{vars.NAMESPACE}} || echo "No release found"
|
||||
helm get values -n ${{vars.NAMESPACE}} ${{vars.HELM_RELEASE_NAME}} > values.yaml|| echo "No values found"
|
||||
- name: Upgrade Helm
|
||||
run: |
|
||||
helm upgrade --debug ${{vars.HELM_RELEASE_NAME}} minecraft-server-charts/minecraft -n ${{vars.NAMESPACE}} -f values.yaml --set minecraftServer.downloadModpackUrl=https://git.modus.toldi.eu/${{github.repository}}/actions/runs/${{github.run_number}}/artifacts/mods
|
||||
|
|
10
index.toml
10
index.toml
|
@ -40,6 +40,11 @@ file = "mods/display-delight.pw.toml"
|
|||
hash = "b98da9b6d2e9d39609b3d865be9b2ca1264ac8a39222d21d882d232a414d5fb2"
|
||||
metafile = true
|
||||
|
||||
[[files]]
|
||||
file = "mods/dynamic-torches.pw.toml"
|
||||
hash = "2ff61f12752e289ba99d7786ede62d3fd5e528665222efef2a44b741d7ee651c"
|
||||
metafile = true
|
||||
|
||||
[[files]]
|
||||
file = "mods/fallingtree.pw.toml"
|
||||
hash = "9f6dcd9dd7ba6ec3300d32aa295825e7af4505a6ffdaae52df8105dd2a808e79"
|
||||
|
@ -100,6 +105,11 @@ file = "mods/mekanism.pw.toml"
|
|||
hash = "e711ae9ea2366056fecbab1ed7aff3ed61d719712d86b56c825e04b9f05449e7"
|
||||
metafile = true
|
||||
|
||||
[[files]]
|
||||
file = "mods/minecartspeed.pw.toml"
|
||||
hash = "17f5ef93c3d53fe4d438ca3de7e7957d8018b03a944fe469c69ba1a5368b22f9"
|
||||
metafile = true
|
||||
|
||||
[[files]]
|
||||
file = "mods/more-delight.pw.toml"
|
||||
hash = "5c12ea91526c54e650162d713b60d41a2f203a940dcd7f5412ffc698c5fc610b"
|
||||
|
|
13
mods/dynamic-torches.pw.toml
Normal file
13
mods/dynamic-torches.pw.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
name = "Dynamic Lights"
|
||||
filename = "dynamic-torches-5.1.jar"
|
||||
side = "both"
|
||||
|
||||
[download]
|
||||
url = "https://cdn.modrinth.com/data/AK1n0IqM/versions/EP4Vd474/dynamic-torches-5.1.jar"
|
||||
hash-format = "sha512"
|
||||
hash = "e6aa25bc1d73921fdb3812d41da0f5a6664575bdf50d849e93abc9314993f7c3965dc69f4558815370d1858b0f54c64a32806667aef55cdebbd012c87d3fa4a2"
|
||||
|
||||
[update]
|
||||
[update.modrinth]
|
||||
mod-id = "AK1n0IqM"
|
||||
version = "EP4Vd474"
|
7
mods/minecartspeed.pw.toml
Normal file
7
mods/minecartspeed.pw.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
name = "minecartspeed"
|
||||
filename = "minecartspeed-1.0-SNAPSHOT.jar"
|
||||
|
||||
[download]
|
||||
url = "https://git.modus.toldi.eu/Bazsalanszky/minecart-speed/releases/download/1.1/minecartspeed-1.0-SNAPSHOT.jar"
|
||||
hash-format = "sha256"
|
||||
hash = "8ff66748813758bc0b73daedb8cd54d4e5fcde875fa61956cde4866798e260b9"
|
|
@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
|
|||
[index]
|
||||
file = "index.toml"
|
||||
hash-format = "sha256"
|
||||
hash = "459241107a49f1d1fbf341bacacd411c7d515a4ab9982c74216e269fe143f8d8"
|
||||
hash = "acda597e92bb442ce3124d072086b638013d0b8cc4a53cb06e213751ea30d8f6"
|
||||
|
||||
[versions]
|
||||
minecraft = "1.21.1"
|
||||
|
|
Loading…
Reference in a new issue