From e7fe043c502938bcde009075a66da8848670512a Mon Sep 17 00:00:00 2001 From: outductor Date: Thu, 12 Sep 2024 08:53:32 +0900 Subject: [PATCH] fix commands --- .../seichiassist-downloader/sensor.yaml | 28 +++---------------- 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/seichiassist-downloader/sensor.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/seichiassist-downloader/sensor.yaml index 0e8bfa09d..b98066b10 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/seichiassist-downloader/sensor.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/seichiassist-downloader/sensor.yaml @@ -65,21 +65,13 @@ spec: template: upload-seichiassist - name: download-seichiassist container: - image: debian:bookworm-slim + image: alpine:3.20 volumeMounts: - name: work mountPath: /work + entrypoint: ["/bin/sh", "-c"] command: - - "apt-get" - - "update" - - "&&" - - "apt-get" - - "install" - - "-y" - - "wget" - - "&&" - - "wget" - - "https://github.com/GiganticMinecraft/SeichiAssist/releases/download/{{ workflow.parameters.tag-name }}/SeichiAssist.jar" + - "wget https://github.com/GiganticMinecraft/SeichiAssist/releases/download/{{ workflow.parameters.tag-name }}/SeichiAssist.jar" - name: upload-seichiassist container: image: minio/mc:latest @@ -99,19 +91,7 @@ spec: mountPath: /work entrypoint: ["/bin/sh", "-c"] command: - - "mc" - - "alias" - - "set" - - "myminio" - - "seichi-private-plugin-blackhole-minio.minio:9000" - - "$minio-access-key" - - "$minio-access-secret" - - "&&" - - "mc" - - "cp" - - "SeichiAssist.jar" - - "myminio/seichiassist/{{ workflow.parameters.target-branch }}/SeichiAssist.jar" - + - "mc alias set myminio seichi-private-plugin-blackhole-minio.minio:9000 $minio-access-key $minio-access-secret && mc cp SeichiAssist.jar myminio/seichiassist/{{ workflow.parameters.target-branch }}/SeichiAssist.jar" parameters: - src: dependencyName: from-seichiassist-downloader