Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
ci: use new "custom" action and an external "dch" action
Lars Wirzenius committed 8 months ago
commit 6596d9eced03eadc1aa598cf2c22347b34f91f45
parent e9b0557
2 files changed +24 -12
added .ambient/dch
@@ -0,0 +1,19 @@
+
#!/bin/bash
+

+
set -euo pipefail
+

+
export DEBEMAIL="$AMBIENT_CI_debemail"
+
export DEBFULLNAME="$AMBIENT_CI_debfullname"
+
export CARGO_TARGET_DIR=/workspace/cache
+
export CARGO_HOME=/workspace/deps
+
export HOME=/root
+
export PATH="/root/.cargo/bin:$PATH"
+

+
git reset --hard
+
git clean -fdx
+

+
V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')"
+
T="$(date -u "+%Y%m%dT%H%M%S")"
+
version="$V.ci$T-1"
+
dch -v "$version" "CI build under Ambient."
+
dch -r ''
modified .radicle/ambient.yaml
@@ -6,8 +6,6 @@ plan:

  - action: shell
    shell: |
-
      export DEBEMAIL=liw@liw.fi
-
      export DEBFULLNAME="Lars Wirzenius"
      export CARGO_TARGET_DIR=/workspace/cache
      export CARGO_HOME=/workspace/deps
      export HOME=/root
@@ -29,16 +27,11 @@ plan:
      make -C doc
      cp doc/*.html /workspace/artifacts/.

-
      # Clean up after tests and documentation building.
-
      git reset --hard
-
      git clean -fdx
-
      git status --ignored
-

-
      V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')"
-
      T="$(date -u "+%Y%m%dT%H%M%S")"
-
      version="$V.ci$T-1"
-
      dch -v "$version" "CI build under Ambient."
-
      dch -r ''
+
  - action: custom
+
    name: dch
+
    args:
+
      debemail: liw@liw.fi
+
      debfullname: "Lars Wirzenius"

  - action: deb