2023-08-17 12:56:16 -05:00
|
|
|
steps:
|
|
|
|
|
|
|
|
fetch:
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- apk update -U
|
|
|
|
- apk add make gnupg
|
|
|
|
|
|
|
|
- make fetch-upstream-woodpecker
|
|
|
|
|
|
|
|
test:
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- apk update -U
|
|
|
|
- apk add make patch
|
|
|
|
|
|
|
|
- make check-patchfail-woodpecker
|
|
|
|
|
|
|
|
build:
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- apk update -U
|
|
|
|
- apk add make gnupg patch python3 bash xz
|
|
|
|
|
|
|
|
- make all
|
|
|
|
|
2023-09-12 09:18:07 -05:00
|
|
|
# uploading to storage.ci.librewolf.net
|
|
|
|
|
|
|
|
upload:
|
|
|
|
image: woodpeckerci/plugin-s3
|
|
|
|
when:
|
|
|
|
- branch: main
|
|
|
|
settings:
|
|
|
|
bucket: artifacts
|
|
|
|
source: "*.{tar.gz,sha256sum}"
|
|
|
|
target: /${CI_BUILD_NUMBER}
|
|
|
|
path_style: true
|
|
|
|
endpoint: https://storage.ci.librewolf.net
|
|
|
|
|
|
|
|
secrets: [aws_access_key_id, aws_secret_access_key]
|
|
|
|
|
2023-09-12 09:33:30 -05:00
|
|
|
# display-links:
|
|
|
|
# image: alpine
|
|
|
|
# when:
|
|
|
|
# - branch: main
|
|
|
|
# commands:
|
|
|
|
# - echo "https://storage.ci.librewolf.net/artifacts/${CI_BUILD_NUMBER}/librewolf-$(cat version)-$(cat release).source.tar.gz"
|
|
|
|
# - echo "https://storage.ci.librewolf.net/artifacts/${CI_BUILD_NUMBER}/librewolf-$(cat version)-$(cat release).source.tar.gz.sha256sum"
|
2023-08-29 12:03:03 -05:00
|
|
|
|
2023-09-12 09:18:07 -05:00
|
|
|
# my ts+axios api stuff to make the codeberg release
|
2023-08-29 12:03:03 -05:00
|
|
|
|
2023-09-12 09:18:07 -05:00
|
|
|
release:
|
|
|
|
image: alpine
|
|
|
|
when:
|
|
|
|
- branch: main
|
|
|
|
commands:
|
|
|
|
- apk update -U
|
|
|
|
- apk add nodejs npm
|
|
|
|
|
|
|
|
- ( cd .woodpecker.release && npm install && npm run build )
|
|
|
|
- ( cd .woodpecker.release && npm run start $(cat ../version)-$(cat ../release) ${CI_BUILD_NUMBER} )
|
|
|
|
|
|
|
|
secrets: [ cb_api_key ]
|