From 234e07750112a14468016a15b5865f932a60fdd6 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Fri, 14 Oct 2022 16:21:56 +0200 Subject: [PATCH] fix: correct URL Signed-off-by: Sam Therapy --- .drone.yml | 52 ++++++++++++++++++++++++++++++------------- .gitignore | 1 - conf/distributions | 3 ++- db/checksums.db | Bin 0 -> 16384 bytes db/contents.cache.db | Bin 0 -> 16384 bytes db/packagenames.db | Bin 0 -> 49152 bytes db/packages.db | Bin 0 -> 49152 bytes db/references.db | Bin 0 -> 16384 bytes db/release.caches.db | Bin 0 -> 20480 bytes db/version | 4 ++++ prepare-pages.sh | 15 ++++++++++--- 11 files changed, 55 insertions(+), 20 deletions(-) create mode 100644 db/checksums.db create mode 100644 db/contents.cache.db create mode 100644 db/packagenames.db create mode 100644 db/packages.db create mode 100644 db/references.db create mode 100644 db/release.caches.db create mode 100644 db/version diff --git a/.drone.yml b/.drone.yml index d3df952..9143a31 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,29 +3,51 @@ name: default type: docker steps: - - name: Get apt packages + - name: Create apt packages image: "ubuntu:latest" commands: + - env - apt update - - apt install -y wget reprepro + - apt install -y git reprepro wget - bash ./prepare-pages.sh - - mv repo/ /pkg - volumes: - - name: pkg - path: /pkg - - name: Push to Pages - image: plugins/gh-pages - settings: - netrc_machine: git.froth.zone - target_branch: pages - pages_directory: /pkg - username: sam - password: - from_secret: GITEA_PASSWORD + - mkdir -p /pkg/repo + - mv repo /pkg/repo/apt + - mv db /db + environment: + TAG: ${TAG} volumes: - name: pkg path: /pkg + - name: Push to Pages + image: plugins/gh-pages + settings: + remote_url: git@git.froth.zone:packages/awl.git + ssh_key: + from_secret: SSH_KEY + target_branch: pages + pages_directory: /pkg/repo + user_name: Sam Therapy + user_email: sam@samtherapy.net + volumes: + - name: pkg + path: /pkg + depends_on: + - "Create apt packages" + + - name: Update the DB + image: appleboy/drone-git-push + settings: + branch: master + remote: ssh://git@git.froth.zone:packages/awl.git + ssh_key: + from_secret: SSH_KEY + target_branch: pages + commit: true + commit_message: Update DB + depends_on: + - "Create apt packages" + volumes: - name: pkg temp: {} diff --git a/.gitignore b/.gitignore index a8f830a..5ee21e0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ .dccache *.deb -db/ repo/ diff --git a/conf/distributions b/conf/distributions index 582e6fd..6984ceb 100644 --- a/conf/distributions +++ b/conf/distributions @@ -1,3 +1,4 @@ Codename: awl Components: main -Architectures: i386 amd64 armhf arm64 +Architectures: i386 amd64 armhf arm64 source +Limit: 0 diff --git a/db/checksums.db b/db/checksums.db new file mode 100644 index 0000000000000000000000000000000000000000..2868da3d31d6904425c00ec255d3ff666c00012a GIT binary patch literal 16384 zcmeI&&2CjU5CC8&G!jUV%c3li4r^OI8{l3vQ?Vmn< z;NZ4%5C4Aj=d*VQpO5Z;>aBCG@A>(lbxgnnOuz(8zywUd1WdpLOuz(8zy!Xlz^c`6 z*6aK3Vz+njVRy0n^8Yo+O*gCmmxMJFFaZ-V0TVC*6EFc2FaZ-V0TcLf1%A4$^!J_a z|9J7@`Q<=Y?Z4LU|84#MdQJa2qD?#hrT+itdjr?k+uj6BzywUd1WdpLOuz(8zywUd z1We%j2(0@5X1#vfUEJL}_<8sG@X6u(dvESt-2H3!Sl)&X*E_at%=N_ z7c(&znwh!fh(*GvQJ_`w*pM*DHki=oJ{xk;PX%s~^z2k7j!@%<5JPU@e!W_gJwB(i z-;e2-UOiviDIBGvbV@JJf15`#x^q`C)b0ybr0zwyF*SxzV#f{`K?b1rg6#c@Vb&Gw z@Kwh63z2JWXJq*d`2*p{5N3Rt@7Dc{rCZ zV+a65RTEIBr;O4j(;&{8Z>oqDB4N%%D~7Cb)vVdp=R?t1SJ*2-Zy_Y0u>OLYke{TU=v6ZQb5R>MGd@2(m{aEr3#uD_siGj(izr#l?L|_zZL8y literal 0 HcmV?d00001 diff --git a/db/contents.cache.db b/db/contents.cache.db new file mode 100644 index 0000000000000000000000000000000000000000..b3f62807dec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VVHwIMP23u0J0APYAJ+O6r|($_7_yk%swKF6Qyd3Tvz_O;FZWDn16_ znAajk|JqO<$MtjOjz|9+UNh%~GCJ0xF1|*9@_0aAn^2X8m)cd%ij(}`Tf?cUweApijgKmY;|fB*y_009U< z00IzLxj@SQyZv?K|0};FXaEEt009U<00Izz00bZafwv~`s`>wGkN>AspX>PlW}-wV z|7UUVe|(?+i~K+6l-hf$W7h90K?$ij5Aj9(p$x*gl2~PxV`Z&;r5W>9F>4jCymyj$ zX^--MUB@B(nwy$BXXB3m#J35sQq;UAToC68r*ZJVrSxR{Kb2exZPFi-KmHxXUYGsbSq&Q0uX=z1Rwwb2tWV=5P$##AOL}t3#9!2 nrT+T0UiSw9R^CE100Izz00bZa0SG_<0uX=z1Rwx`Hxc*;ez4hW literal 0 HcmV?d00001 diff --git a/db/references.db b/db/references.db new file mode 100644 index 0000000000000000000000000000000000000000..6f29f3a737bfa3a0963357b50b71bf7f82c7362d GIT binary patch literal 16384 zcmeI&u};E37{KxGDkSLOb#aHl++u`=hj4Qji7X!Cji>WvoTYaY_hB6|_lw0W)Q4dlx^eBp xZqN_ZEnf_B z#De>$(lVD#2#KG*&F%1u%988%wtp59A2@%($ImK*3yMzta%9phbdCoOs5M)GAR(k|FcHRp?3YgheNL-X@XrF{5k;~L`?&mf|`F%ax#eM6S z>O2i9Z(XkAD;gt$WBNQEh;+BMo!u_Z%e&u|4snBmKHB7rxaH=4h7=5P_eA0XAC0<* zAWed8H|yMnQaf9uSs&7)xj(YFDQ5W=B<<-0Ti*^yq`BSWXrz1V_~m1fUkc0pJ%nY$ zB7D0Kiuiob)%Zi}XtnOzF2@%K^@%=V>ZJ#-PK%>%*v`MdI5EuUW?22>ZQrRakhbQ_ z__ixk$hPL5DF;Vxqx)&`|WnU zdgybzC*&q2IUil={&8r%I#9KJq-$GcG4;Wce*OBGE`4rOw{-E{V==CV%SRj1tm8Ji zl%2Uvz2cCGrxNI z&2>d8j+j@#(%KNA!r-ObZS4)U^@wYN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3.0 +3.3.0 +bdb5.3.28 +bdb5.3.0 diff --git a/prepare-pages.sh b/prepare-pages.sh index 4e2ca33..ecba7c5 100755 --- a/prepare-pages.sh +++ b/prepare-pages.sh @@ -1,6 +1,15 @@ #!/usr/bin/env bash set -e +# drone +if [ -n "$DRONE_TAG" ]; then + TAG=$DRONE_TAG +fi +# woodpecker +if [ -n "$CI_COMMIT_TAG" ]; then + TAG=$CI_COMMIT_TAG +fi + if [ -z "$TAG" ]; then echo "\$TAG not set, exiting" exit 1 @@ -8,13 +17,13 @@ fi arches=("amd64" "386" "armv6" "arm64") -notag=$(sed 's/v//' <<<"$TAG") +notag=${TAG//v/} for arch in "${arches[@]}"; do - # wget "http://localhost:8080/awl_${notag}_linux_${arch}.deb" - wget "https://git.froth.zone/sam/awl/releases/$TAG/download/awl_${notag}_linux_${arch}.deb" + wget "https://git.froth.zone/sam/awl/releases/download/$TAG/awl_${notag}_linux_${arch}.deb" done reprepro includedeb awl ./*.deb +mkdir -p repo mv dists/ pool/ repo/