Compare commits
4 commits
4f9c8ff7d8
...
694a55c749
Author | SHA1 | Date | |
---|---|---|---|
694a55c749 | |||
d43bfa068b | |||
a450dd97b2 | |||
19d963d6eb |
4 changed files with 47 additions and 135 deletions
130
.drone.yml
130
.drone.yml
|
@ -1,130 +0,0 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: Test-Push
|
|
||||||
|
|
||||||
platform:
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Prepare Repo (amd64,test)
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
|
|
||||||
- name: Compile gmqcc (amd64,test)
|
|
||||||
image: alpine
|
|
||||||
commands:
|
|
||||||
- chmod +x ci-dependencies.sh
|
|
||||||
- ./ci-dependencies.sh
|
|
||||||
- cd gmqcc
|
|
||||||
- make
|
|
||||||
- cd ..
|
|
||||||
|
|
||||||
- name: Compile SpecialSauce (amd64,test)
|
|
||||||
image: alpine
|
|
||||||
commands:
|
|
||||||
- chmod +x ci-dependencies.sh
|
|
||||||
- chmod +x build.sh
|
|
||||||
- ./ci-dependencies.sh
|
|
||||||
- bash build.sh
|
|
||||||
|
|
||||||
- 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 bash
|
|
||||||
- cd dist/
|
|
||||||
- wget https://fastdl.hackmi.ch/scripts/s3upload.sh
|
|
||||||
- bash s3upload.sh amogusspecialsauce/b/main compiled-${DRONE_COMMIT_SHA:0:10}.zip
|
|
||||||
|
|
||||||
- name: Send discord notification
|
|
||||||
image: alpine
|
|
||||||
environment:
|
|
||||||
WEBHOOK_URL:
|
|
||||||
from_secret: WEBHOOK_URL
|
|
||||||
commands:
|
|
||||||
- apk add bash curl wget ca-certificates openssl
|
|
||||||
- wget https://fastdl.hackmi.ch/scripts/webhook-amogusspecialsauce.sh
|
|
||||||
- bash webhook-amogusspecialsauce.sh
|
|
||||||
|
|
||||||
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
|
|
||||||
- bash build.sh
|
|
||||||
|
|
||||||
- name: Release_binary git (prod)
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: api_key
|
|
||||||
base_url: https://git.hackmi.ch
|
|
||||||
files: dist/*
|
|
||||||
checksum: md5,sha256
|
|
||||||
|
|
||||||
- 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 bash 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: Send discord notification
|
|
||||||
image: alpine
|
|
||||||
environment:
|
|
||||||
WEBHOOK_URL:
|
|
||||||
from_secret: WEBHOOK_URL
|
|
||||||
commands:
|
|
||||||
- apk add bash curl wget ca-certificates openssl
|
|
||||||
- wget https://fastdl.hackmi.ch/scripts/webhook-amogusspecialsauce.sh
|
|
||||||
- bash webhook-amogusspecialsauce.sh
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
41
.woodpecker.yml
Normal file
41
.woodpecker.yml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
steps:
|
||||||
|
- name: Prepare Repo (amd64,test)
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
- name: Compile gmqcc (amd64)
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- chmod +x ci-dependencies.sh
|
||||||
|
- ./ci-dependencies.sh
|
||||||
|
- cd gmqcc
|
||||||
|
- make
|
||||||
|
- cd ..
|
||||||
|
|
||||||
|
- name: Compile SpecialSauce (amd64)
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- chmod +x ci-dependencies.sh
|
||||||
|
- chmod +x build.sh
|
||||||
|
- ./ci-dependencies.sh
|
||||||
|
- bash build.sh
|
||||||
|
|
||||||
|
- name: Upload Artifacts (amd64)
|
||||||
|
image: ocram85/plugin-gitea-package:latest
|
||||||
|
settings:
|
||||||
|
user:
|
||||||
|
from_secret: reg-user
|
||||||
|
password:
|
||||||
|
from_secret: reg-pass
|
||||||
|
owner: "amogus.tv"
|
||||||
|
package_name: "amogusspecialsauce"
|
||||||
|
package_version: "0.0.1"
|
||||||
|
file_source: "./dist/compiled-${CI_COMMIT_SHA:0:10}.zip"
|
||||||
|
file_name: "compiled-latest.zip"
|
||||||
|
update: "true"
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: [push, tag, cron]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
@ -13,6 +13,7 @@ git clone --recurse-submodules https://git.hackmi.ch/amogus.tv/AmogusSpecialSauc
|
||||||
## Binary
|
## Binary
|
||||||
Under the "Releases" Tab in git, there are the major versions for download.
|
Under the "Releases" Tab in git, there are the major versions for download.
|
||||||
The tags were automatically build via CI.
|
The tags were automatically build via CI.
|
||||||
|
For Downloading the latest / main package please use the Packages Tab (0.0.1 version -> main branch)
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
For building you need an Linux based OS with gcc,g++ and bash.
|
For building you need an Linux based OS with gcc,g++ and bash.
|
||||||
|
|
10
build.sh
10
build.sh
|
@ -19,14 +19,14 @@ mkdir -vp $(dirname "$0")/compiled
|
||||||
mv -v *.dat $(dirname "$0")/compiled
|
mv -v *.dat $(dirname "$0")/compiled
|
||||||
rm *.lno
|
rm *.lno
|
||||||
mkdir dist
|
mkdir dist
|
||||||
if [[ -n "${DRONE_TAG}" ]]
|
if [[ -n "${CI_COMMIT_TAG}" ]]
|
||||||
then
|
then
|
||||||
echo "Making ready for Tag: ${DRONE_TAG}"
|
echo "Making ready for Tag: ${CI_COMMIT_TAG}"
|
||||||
zip -9 dist/compiled-${DRONE_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
zip -9 dist/compiled-${CI_COMMIT_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||||
elif [[ -n "${DRONE_COMMIT_SHA}" ]]
|
elif [[ -n "${DRONE_COMMIT_SHA}" ]]
|
||||||
then
|
then
|
||||||
echo "Making ready for Commit: ${DRONE_COMMIT_SHA:0:10}"
|
echo "Making ready for Commit: ${CI_COMMIT_SHA:0:10}"
|
||||||
zip -9 dist/compiled-${DRONE_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
zip -9 dist/compiled-${CI_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