summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrystal <crystal@noreply.codeberg.org>2023-06-23 03:13:00 -0600
committercrystal <crystal@noreply.codeberg.org>2023-06-23 03:13:00 -0600
commit492b03753ade6e69960afff596b6e91c1b29d6e5 (patch)
treee5fe749091b60b56e0ad8a621e2c2f65f57807d4
parenta37e7517ced338e96e943399382dd318677cf995 (diff)
apt repo test
-rwxr-xr-x.ci-forgejo-apt.sh5
-rw-r--r--.crystalintegration.yml13
2 files changed, 18 insertions, 0 deletions
diff --git a/.ci-forgejo-apt.sh b/.ci-forgejo-apt.sh
new file mode 100755
index 0000000..d474e28
--- /dev/null
+++ b/.ci-forgejo-apt.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for deb in "$@" ; do
+ curl -H "Authorization: token $FORGEJO_KEY" --upload-file $deb $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload
+done
diff --git a/.crystalintegration.yml b/.crystalintegration.yml
index 19d15e5..e34bc8a 100644
--- a/.crystalintegration.yml
+++ b/.crystalintegration.yml
@@ -306,3 +306,16 @@ pipeline:
skip_verify: true
when:
event: [ tag ]
+
+ publish-apt-repo:
+ image: *ci_verify_image
+ group: upload
+ environment:
+ FORGEJO_SITE: https://code.forgejo.org
+ FORGEJO_OWNER: crystal
+ DEBIAN_DIST: any
+ DEBIAN_COMPONENT: forgejo
+ secrets: [ cfo_api_key ]
+ commands:
+ - export FORGEJO_KEY=$CFO_API_KEY
+ - ./.ci-forgejo-apt.sh "*.deb"