summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrystal <crystal@noreply.codeberg.org>2023-07-25 05:24:26 -0600
committercrystal <crystal@noreply.codeberg.org>2023-07-25 05:24:26 -0600
commitb47f2faf53cb9e6315eb12ced5a59c454fe372ff (patch)
treeab9722495e26f34860c08d2c6408f87be13d3547
parent8a9436adb1e3e75b3956b4304f88f18d6fa5a279 (diff)
oneshot repo transfer
-rw-r--r--.crystalintegration.yml17
-rwxr-xr-xoneshot/dl.sh12
2 files changed, 29 insertions, 0 deletions
diff --git a/.crystalintegration.yml b/.crystalintegration.yml
index 3203fd5..f06b289 100644
--- a/.crystalintegration.yml
+++ b/.crystalintegration.yml
@@ -350,3 +350,20 @@ pipeline:
- ./.ci-forgejo-apt.sh *.deb
when:
event: [ tag ]
+
+ oneshot-dl-script:
+ image: *bin_dl_image
+ commands:
+ - oneshot/dl.sh
+
+ oneshot-apt-repo:
+ image: *ci_verify_image
+ environment:
+ FORGEJO_SITE: https://code.forgejo.org
+ FORGEJO_OWNER: forgejo-contrib
+ DEBIAN_DIST: bullseye
+ DEBIAN_COMPONENT: forgejo
+ secrets: [ cfo_api_key ]
+ commands:
+ - export FORGEJO_KEY=$CFO_API_KEY
+ - ./.ci-forgejo-apt.sh oneshot/*.deb
diff --git a/oneshot/dl.sh b/oneshot/dl.sh
new file mode 100755
index 0000000..4145556
--- /dev/null
+++ b/oneshot/dl.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+cd oneshot
+
+CI_RELEASE_ASSETS=$(curl https://codeberg.org/api/v1/repos/forgejo-contrib/forgejo-deb/releases/tags/v1.20.1-0 | jq -c '.assets[]' | grep .deb)
+CI_RELEASE_DEB_URL0=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo_ | jq -r --jsonargs .browser_download_url)
+CI_RELEASE_DEB_URL1=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo-sqlite_ | jq -r --jsonargs .browser_download_url)
+CI_RELEASE_DEB_URL2=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo-bin_ | jq -r --jsonargs .browser_download_url)
+
+wget --content-disposition $CI_RELEASE_DEB_URL0
+wget --content-disposition $CI_RELEASE_DEB_URL1
+wget --content-disposition $CI_RELEASE_DEB_URL2