From 492b03753ade6e69960afff596b6e91c1b29d6e5 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 23 Jun 2023 03:13:00 -0600 Subject: [PATCH] apt repo test --- .ci-forgejo-apt.sh | 5 +++++ .crystalintegration.yml | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 .ci-forgejo-apt.sh 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"