Add publishing task to the pipeline
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-01-18 00:23:14 +01:00
parent bb56641e4b
commit 42af53c190
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -9,3 +9,13 @@ pipeline:
commands:
- echo "charch ${platform} && ./configure.sh && cd build-${platform}-xtchain && ninja -v && ninja diskimg -v" > build.cmds
- xtchain < build.cmds
publish:
image: codingworkshop/oscw-runner:latest
secrets:
- OSCW_ARTIFACTS_HOSTNAME
- OSCW_ARTIFACTS_USERNAME
- OSCW_ARTIFACTS_USERKEY
commands:
- tar -I 'gzip' -cpf ExectOS-$(date +'%Y%m%d')-${CI_COMMIT_SHA:0:10}-${platform}.tar.gz -C build-${platform}-xtchain/output/binaries .
- gzip -c build-${platform}-xtchain/output/disk.img > ExectOS-$(date +'%Y%m%d')-${CI_COMMIT_SHA:0:10}-${platform}.img.gz
- artifact_publish "ExectOS-$(date +'%Y%m%d')-${CI_COMMIT_SHA:0:10}-${platform}.*.gz" ExectOS