Project: gh-melezhik-bird

Build now

Configuration

sparrowdo:
  no_sudo: true
  no_index_update: false
  bootstrap: false
  format: default
  repo: https://sparrowhub.io/repo
  image: melezhik/sparrow:debian_arm
  docker: gh-melezhik-bird
  tags: >
      SCM_URL=https://github.com/melezhik/bird.git,
      SCM_SHA=HEAD
disabled: false
keep_builds: 100
allow_manual_run: true
scm:
  url: https://github.com/melezhik/bird.git
  branch: HEAD
plugins:
  Sparky::Plugin::Docker: {}

Job

#!raku

use Sparky::JobApi;

%*ENV<SP6_DUMP_TASK_CODE> = False;

bash "raku -V > rakuenv.txt";

Sparky::JobApi.new(:mine).put-file("rakuenv.txt","rakuenv.txt");

directory "scm";

git-scm tags()<SCM_URL>, %(
  to => "scm",
  branch => tags<SCM_BRANCH>
);

bash "git show --oneline -s > gitinfo.txt", %(
  cwd => "{$*CWD}/scm"
);

Sparky::JobApi.new(:mine).put-file("scm/gitinfo.txt","gitinfo.txt");

bash "zef install . --force-install", %(
  cwd => "{$*CWD}/scm"
);

bash "sudo apt-get update -yq";
bash "sudo apt-get install -yq nano";
bash "sudo apt-get install -yq python3-pip";
bash "pip3 install --user --break-system-packages pyyaml";

bash "bird", %(
  cwd => "{$*CWD}/scm",
  envvars => %(
   :SP6_DUMP_TASK_CODE<0>
  )
);