Changed CI Workflow 4

This commit is contained in:
Phil 2023-08-20 19:12:48 +02:00
parent 9f46027f87
commit ab5aa57380

View file

@ -29,17 +29,20 @@ steps:
- ./ci-dependencies.sh
- bash build.sh
- name: Release_binary s3 (test)
image: plugins/s3
settings:
endpoint: https://hackmi.ch
bucket: s3
access_key:
from_secret: access_key
secret_key:
from_secret: secret_key
source: dist/*
target: /amogusspecialsauce/b/main
- name: Release_binary s3 (prod)
image: alpine
environment:
s3_host:
from_secret: s3_host
s3_key:
from_secret: s3_key
s3_secret:
from_secret: s3_secret
commands:
- apk add curl wget ca-certificates openssl
- cd dist/
- wget https://fastdl.hackmi.ch/scripts/s3upload.sh
- bash s3upload.sh amogusspecialsauce/b/main compiled-${DRONE_COMMIT_SHA:0:10}.zip
- name: discord notification
image: appleboy/drone-discord
@ -104,16 +107,19 @@ steps:
checksum: md5,sha256
- name: Release_binary s3 (prod)
image: plugins/s3
settings:
endpoint: https://hackmi.ch
bucket: s3
access_key:
from_secret: access_key
secret_key:
from_secret: secret_key
source: dist/*
target: /amogusspecialsauce/releases
image: alpine
environment:
s3_host:
from_secret: s3_host
s3_key:
from_secret: s3_key
s3_secret:
from_secret: s3_secret
commands:
- apk add curl wget ca-certificates openssl
- cd dist/
- wget https://fastdl.hackmi.ch/scripts/s3upload.sh
- bash s3upload.sh amogusspecialsauce/releases compiled-${DRONE_TAG}.zip
- name: discord notification
image: appleboy/drone-discord