BuildID: 3775
Status: OK
Image: melezhik/sparrow:debian_arm
Worker status: OK
---
Date: 11.11.2023 @ 07:31
Time elapsed: 88 sec
---
SCM:
https://github.com/melezhik/sparky-job-api.git
Git sha: b9c9e17
Git comment: migrate to arm
image:
- melezhik/sparrow:debian_arm
secrets:
- FEZ_TOKEN
tasks:
- name: fez-upload
default: true
language: Raku
init: |
run_task "test";
if config()<tasks><git-commit><state><comment> ~~ /'release!'/ {
run_task "upload"
}
subtasks:
-
name: test
language: Bash
code: |
set -e
cd source
zef test .
-
name: upload
language: Bash
code: |
set -e
cat << HERE > ~/.fez-config.json
{"groups":[],"un":"melezhik","key":"${FEZ_TOKEN}"}
HERE
cd source/
zef install --/test fez
tom --clean
fez upload
depends:
-
name: git-commit
- name: git-commit
plugin: git-commit-data
config:
dir: source
[35m07:31:00[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[35m07:31:02[0m :: [repository] - installing git-commit-data, version 0.000004
[1;36m[task run: task.bash - git-commit][0m
[1;36m[dump code: task.bash][0m
[1] cd $(config dir)
[2]
[3] echo "get commit data from $(pwd) ..."
[4]
[5] git show -s --format=%h > $cache_root_dir/sha.txt
[6] git show -s --format=%s > $cache_root_dir/comment.txt
[7]
[1;36m[task stdout][0m
[35m07:31:04[0m :: get commit data from /var/.sparrowdo/env/fez-upload/.sparrowdo/source ...
[1;36m[task run: task.pl6 - git-commit][0m
[1;36m[dump code: task.pl6][0m
[1] say "git commit: ", "{cache_root_dir()}/sha.txt".IO.slurp.chomp;
[2] say "git comment: ", "{cache_root_dir()}/comment.txt".IO.slurp.chomp;
[3]
[4]
[5] update_state({
[6] sha => "{cache_root_dir()}/sha.txt".IO.slurp.chomp,
[7] comment => "{cache_root_dir()}/comment.txt".IO.slurp.chomp
[8] });
[9]
[1;36m[task stdout][0m
[35m07:31:04[0m :: git commit: b9c9e17
[35m07:31:04[0m :: git comment: migrate to arm
[35m07:30:37[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
source directory does not yet exist, download source archive from storage
[35m07:30:40[0m :: [repository] - installing pack-unpack, version 0.000001
[1;36m[task run: task.bash - unpack source archive][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2]
[3] file=$(config file)
[4] dir=$(config dir)
[5]
[6] echo "tar -xzf $file "
[7]
[8] tar -xzf $file
[9]
[10] if test $dir; then
[11] ls -l $dir
[12] fi
[13]
[14]
[1;36m[task stdout][0m
[35m07:30:42[0m :: tar -xzf source.tar.gz
[1;36m[task run: task.bash - tasks/fez-upload][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2] cd source
[3] zef test .
[4]
[1;36m[task stdout][0m
[35m07:31:08[0m :: ===> Testing: Sparky-Job-Api:ver<0.0.6>:auth<zef:melezhik>
[35m07:31:11[0m :: ===> Testing [OK] for Sparky-Job-Api:ver<0.0.6>:auth<zef:melezhik>