Changed CI behaviour
All checks were successful
ci/woodpecker/push/1-build-latest Pipeline was successful

This commit is contained in:
Phil 2024-10-06 14:15:51 +02:00
parent 8866c82256
commit 29b3daf321
Signed by: Phil
GPG key ID: 350C8B7C4EF5DED4
4 changed files with 102 additions and 1 deletions

View file

@ -25,7 +25,7 @@ steps:
from_secret: reg-pass
owner: "amogus.tv"
package_name: "amogusspecialsauce"
package_version: "0.0.1"
package_version: "${CI_COMMIT_BRANCH}"
file_source: "./dist/compiled-${CI_COMMIT_SHA:0:10}.zip"
file_name: "compiled-latest.zip"
update: "true"

View file

@ -0,0 +1,20 @@
steps:
- 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
when:
- event: [pull_request]

View file

@ -0,0 +1,36 @@
steps:
- name: Compile gmqcc (amd64/prc)
image: alpine
commands:
- chmod +x ci-dependencies.sh
- ./ci-dependencies.sh
- cd gmqcc
- make
- cd ..
- name: Compile SpecialSauce (amd64/prc)
image: alpine
commands:
- chmod +x ci-dependencies.sh
- chmod +x build.sh
- ./ci-dependencies.sh
- bash build.sh
- name: Upload Artifacts (amd64/prc)
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: "${CI_COMMIT_BRANCH}"
file_source: "./dist/compiled-${CI_COMMIT_SHA:0:10}.zip"
file_name: "compiled-latest.zip"
update: "true"
when:
- event: [pull_request_closed]
branch:
- ${CI_COMMIT_BRANCH}

View file

@ -0,0 +1,45 @@
steps:
- name: Compile gmqcc (amd64/tag)
image: alpine
commands:
- chmod +x ci-dependencies.sh
- ./ci-dependencies.sh
- cd gmqcc
- make
- cd ..
- name: Compile SpecialSauce (amd64/tag)
image: alpine
commands:
- chmod +x ci-dependencies.sh
- chmod +x build.sh
- ./ci-dependencies.sh
- bash build.sh
- name: Upload Artifacts (amd64/tag)
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: "${CI_COMMIT_TAG}"
file_source: "./dist/compiled-${CI_COMMIT_TAG}.zip"
file_name: "compiled-${CI_COMMIT_TAG}.zip"
update: "true"
- name: "Release Tagges"
image: woodpeckerci/plugin-release
settings:
files:
- './dist/compiled-${CI_COMMIT_TAG}.zip'
checksum: sha256
api_key:
from_secret: ACCESS_TOKEN
when:
- event: [deployment, release, tag, cron]
branch:
- ${CI_REPO_DEFAULT_BRANCH}