Changed CI Workflow 3
This commit is contained in:
parent
ab2d1e98f8
commit
9f46027f87
2 changed files with 10 additions and 10 deletions
12
.drone.yml
12
.drone.yml
|
@ -32,14 +32,14 @@ steps:
|
||||||
- name: Release_binary s3 (test)
|
- name: Release_binary s3 (test)
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
settings:
|
settings:
|
||||||
endpoint: https://s3.hackmi.ch
|
endpoint: https://hackmi.ch
|
||||||
bucket: amogusspecialsauce
|
bucket: s3
|
||||||
access_key:
|
access_key:
|
||||||
from_secret: access_key
|
from_secret: access_key
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: secret_key
|
from_secret: secret_key
|
||||||
source: dist/*
|
source: dist/*
|
||||||
target: /b/main
|
target: /amogusspecialsauce/b/main
|
||||||
|
|
||||||
- name: discord notification
|
- name: discord notification
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
|
@ -106,14 +106,14 @@ steps:
|
||||||
- name: Release_binary s3 (prod)
|
- name: Release_binary s3 (prod)
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
settings:
|
settings:
|
||||||
endpoint: https://s3.hackmi.ch
|
endpoint: https://hackmi.ch
|
||||||
bucket: amogusspecialsauce
|
bucket: s3
|
||||||
access_key:
|
access_key:
|
||||||
from_secret: access_key
|
from_secret: access_key
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: secret_key
|
from_secret: secret_key
|
||||||
source: dist/*
|
source: dist/*
|
||||||
target: /releases
|
target: /amogusspecialsauce/releases
|
||||||
|
|
||||||
- name: discord notification
|
- name: discord notification
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
|
|
8
build.sh
8
build.sh
|
@ -21,13 +21,13 @@ rm *.lno
|
||||||
mkdir dist
|
mkdir dist
|
||||||
if [[ -n "${DRONE_TAG}" ]]
|
if [[ -n "${DRONE_TAG}" ]]
|
||||||
then
|
then
|
||||||
echo "Making ready for Tag: $DRONE_TAG"
|
echo "Making ready for Tag: ${DRONE_TAG}"
|
||||||
zip -9 dist/compiled-$DRONE_TAG.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
zip -9 dist/compiled-${DRONE_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||||
elif [[ -n "${DRONE_COMMIT_SHA}" ]]
|
elif [[ -n "${DRONE_COMMIT_SHA}" ]]
|
||||||
then
|
then
|
||||||
COMMIT_SHA = ${DRONE_COMMIT_SHA:0:10}
|
COMMIT_SHA = ${DRONE_COMMIT_SHA:0:10}
|
||||||
echo "Making ready for Commit: $COMMIT_SHA"
|
echo "Making ready for Commit: ${DRONE_COMMIT_SHA:0:10}"
|
||||||
zip -9 dist/compiled-$COMMIT_SHA.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
zip -9 dist/compiled-${DRONE_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||||
else
|
else
|
||||||
zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||||
fi
|
fi
|
Loading…
Reference in a new issue