2023-08-20 08:40:48 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2023-08-20 08:45:55 +00:00
|
|
|
type: docker
|
2023-08-20 14:36:42 +00:00
|
|
|
name: Test-Push
|
2023-08-20 08:40:48 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2023-08-20 14:36:42 +00:00
|
|
|
- name: Prepare Repo (amd64,test)
|
2023-08-20 08:45:55 +00:00
|
|
|
image: alpine/git
|
2023-08-20 08:40:48 +00:00
|
|
|
commands:
|
2023-08-20 08:46:04 +00:00
|
|
|
- git submodule update --init --recursive
|
2023-08-20 08:40:48 +00:00
|
|
|
|
2023-08-20 14:36:42 +00:00
|
|
|
- name: Compile gmqcc (amd64,test)
|
2023-08-20 08:40:48 +00:00
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- chmod +x ci-dependencies.sh
|
|
|
|
- ./ci-dependencies.sh
|
|
|
|
- cd gmqcc
|
|
|
|
- make
|
2023-08-20 08:58:16 +00:00
|
|
|
- cd ..
|
2023-08-20 08:40:48 +00:00
|
|
|
|
2023-08-20 14:36:42 +00:00
|
|
|
- name: Compile SpecialSauce (amd64,test)
|
2023-08-20 08:40:48 +00:00
|
|
|
image: alpine
|
2023-08-20 08:58:16 +00:00
|
|
|
commands:
|
|
|
|
- chmod +x ci-dependencies.sh
|
|
|
|
- chmod +x build.sh
|
2023-08-20 08:40:48 +00:00
|
|
|
- ./ci-dependencies.sh
|
2023-08-20 16:28:06 +00:00
|
|
|
- bash build.sh
|
|
|
|
|
|
|
|
- name: Release_binary s3 (test)
|
|
|
|
image: plugins/s3
|
|
|
|
settings:
|
|
|
|
endpoint: https://s3.hackmi.ch
|
|
|
|
bucket: amogusspecialsauce
|
|
|
|
access_key:
|
|
|
|
from_secret: access_key
|
|
|
|
secret_key:
|
|
|
|
from_secret: secret_key
|
|
|
|
source: dist/*
|
|
|
|
target: /b/main
|
|
|
|
|
|
|
|
- name: discord notification
|
|
|
|
image: appleboy/drone-discord
|
|
|
|
settings:
|
|
|
|
webhook_id:
|
|
|
|
from_secret: webhook_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: webhook_token
|
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
Test-Build {{build.number}} succeeded.
|
|
|
|
Download: https://s3.hackmi.ch/amogusspecialsauce/b/main/compiled-${DRONE_COMMIT_SHA:0:10}.zip
|
|
|
|
{{else}}
|
|
|
|
Test-Build {{build.number}} failed.
|
|
|
|
See: {{build.link}}
|
|
|
|
{{/success}}
|
2023-08-20 08:40:48 +00:00
|
|
|
|
2023-08-20 14:36:42 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Release-Tag
|
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Prepare Repo (amd64,prod)
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
|
|
|
- name: Compile gmqcc (amd64,prod)
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- chmod +x ci-dependencies.sh
|
|
|
|
- ./ci-dependencies.sh
|
|
|
|
- cd gmqcc
|
|
|
|
- make
|
|
|
|
- cd ..
|
|
|
|
|
|
|
|
- name: Compile SpecialSauce (amd64,prod)
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- chmod +x ci-dependencies.sh
|
|
|
|
- chmod +x build.sh
|
|
|
|
- ./ci-dependencies.sh
|
2023-08-20 16:28:06 +00:00
|
|
|
- bash build.sh
|
2023-08-20 14:36:42 +00:00
|
|
|
|
2023-08-20 16:28:06 +00:00
|
|
|
- name: Release_binary git (prod)
|
2023-08-20 14:10:08 +00:00
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: api_key
|
|
|
|
base_url: https://git.hackmi.ch
|
|
|
|
files: dist/*
|
|
|
|
checksum: md5,sha256
|
|
|
|
|
2023-08-20 16:28:06 +00:00
|
|
|
- name: Release_binary s3 (prod)
|
|
|
|
image: plugins/s3
|
|
|
|
settings:
|
|
|
|
endpoint: https://s3.hackmi.ch
|
|
|
|
bucket: amogusspecialsauce
|
|
|
|
access_key:
|
|
|
|
from_secret: access_key
|
|
|
|
secret_key:
|
|
|
|
from_secret: secret_key
|
|
|
|
source: dist/*
|
|
|
|
target: /releases
|
|
|
|
|
|
|
|
- name: discord notification
|
|
|
|
image: appleboy/drone-discord
|
|
|
|
settings:
|
|
|
|
webhook_id:
|
|
|
|
from_secret: webhook_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: webhook_token
|
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
Test-Build {{build.number}} succeeded.
|
|
|
|
Download: https://s3.hackmi.ch/amogusspecialsauce/releases/compiled-${DRONE_TAG}.zip
|
|
|
|
{{else}}
|
|
|
|
Test-Build {{build.number}} failed.
|
|
|
|
See: {{build.link}}
|
|
|
|
{{/success}}
|
|
|
|
|
2023-08-20 08:40:48 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|