From b464db586f08026e4a4bb213bfa933bd266abe74 Mon Sep 17 00:00:00 2001 From: outductor Date: Sun, 15 Sep 2024 17:55:48 +0900 Subject: [PATCH] fix names --- .../seichiassist-downloader/sensor.yaml | 34 ++++++------------- 1 file changed, 11 insertions(+), 23 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 759a97e98..fc6199392 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 @@ -57,22 +57,21 @@ spec: - name: target-branch - name: tag-name templates: - - name: main - steps: - - - name: download-seichiassist - template: download-seichiassist - - - name: upload-seichiassist - template: upload-seichiassist - name: download-seichiassist + steps: + - - name: download + template: download-release + - - name: upload + template: upload-artifact + - name: download-release container: image: alpine:3.20 volumeMounts: - name: work mountPath: /work - command: - - "wget" - - "https://github.com/GiganticMinecraft/SeichiAssist/releases/download/{{ workflow.parameters.tag-name }}/SeichiAssist.jar" - - name: upload-seichiassist + command: [sh, -c] + args: ["wget https://github.com/GiganticMinecraft/SeichiAssist/releases/download/{{ workflow.parameters.tag-name }}/SeichiAssist.jar"] + - name: upload-artifact container: image: minio/mc:latest env: @@ -89,19 +88,8 @@ spec: volumeMounts: - name: work mountPath: /work - 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" + command: [sh, -c] + args: ["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