Changed CI Workflow 3

This commit is contained in:
Phil 2023-08-20 18:47:00 +02:00
parent ab2d1e98f8
commit 9f46027f87
2 changed files with 10 additions and 10 deletions

View file

@ -32,14 +32,14 @@ steps:
- name: Release_binary s3 (test)
image: plugins/s3
settings:
endpoint: https://s3.hackmi.ch
bucket: amogusspecialsauce
endpoint: https://hackmi.ch
bucket: s3
access_key:
from_secret: access_key
secret_key:
from_secret: secret_key
source: dist/*
target: /b/main
target: /amogusspecialsauce/b/main
- name: discord notification
image: appleboy/drone-discord
@ -106,14 +106,14 @@ steps:
- name: Release_binary s3 (prod)
image: plugins/s3
settings:
endpoint: https://s3.hackmi.ch
bucket: amogusspecialsauce
endpoint: https://hackmi.ch
bucket: s3
access_key:
from_secret: access_key
secret_key:
from_secret: secret_key
source: dist/*
target: /releases
target: /amogusspecialsauce/releases
- name: discord notification
image: appleboy/drone-discord

View file

@ -21,13 +21,13 @@ rm *.lno
mkdir dist
if [[ -n "${DRONE_TAG}" ]]
then
echo "Making ready for Tag: $DRONE_TAG"
zip -9 dist/compiled-$DRONE_TAG.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
echo "Making ready for Tag: ${DRONE_TAG}"
zip -9 dist/compiled-${DRONE_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
elif [[ -n "${DRONE_COMMIT_SHA}" ]]
then
COMMIT_SHA = ${DRONE_COMMIT_SHA:0:10}
echo "Making ready for Commit: $COMMIT_SHA"
zip -9 dist/compiled-$COMMIT_SHA.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
echo "Making ready for Commit: ${DRONE_COMMIT_SHA:0:10}"
zip -9 dist/compiled-${DRONE_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
else
zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
fi