Changed CI behaviour
All checks were successful
ci/woodpecker/push/1-build-latest Pipeline was successful
All checks were successful
ci/woodpecker/push/1-build-latest Pipeline was successful
This commit is contained in:
parent
8866c82256
commit
29b3daf321
4 changed files with 102 additions and 1 deletions
|
@ -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"
|
20
.woodpecker/2-build-pr.yml
Normal file
20
.woodpecker/2-build-pr.yml
Normal 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]
|
36
.woodpecker/3-build-pr-closed.yml
Normal file
36
.woodpecker/3-build-pr-closed.yml
Normal 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}
|
45
.woodpecker/4-build-tagged.yml
Normal file
45
.woodpecker/4-build-tagged.yml
Normal 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}
|
Loading…
Reference in a new issue