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 - ./ci-dependencies.sh
- bash build.sh - bash build.sh
- name: Release_binary s3 (test) - name: Release_binary s3 (prod)
image: plugins/s3 image: alpine
settings: environment:
endpoint: https://hackmi.ch s3_host:
bucket: s3 from_secret: s3_host
access_key: s3_key:
from_secret: access_key from_secret: s3_key
secret_key: s3_secret:
from_secret: secret_key from_secret: s3_secret
source: dist/* commands:
target: /amogusspecialsauce/b/main - 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 - name: discord notification
image: appleboy/drone-discord image: appleboy/drone-discord
@ -104,16 +107,19 @@ steps:
checksum: md5,sha256 checksum: md5,sha256
- name: Release_binary s3 (prod) - name: Release_binary s3 (prod)
image: plugins/s3 image: alpine
settings: environment:
endpoint: https://hackmi.ch s3_host:
bucket: s3 from_secret: s3_host
access_key: s3_key:
from_secret: access_key from_secret: s3_key
secret_key: s3_secret:
from_secret: secret_key from_secret: s3_secret
source: dist/* commands:
target: /amogusspecialsauce/releases - 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 - name: discord notification
image: appleboy/drone-discord image: appleboy/drone-discord