From 21b118b39494e0a1887f7a6cecac32d0f4c204cf Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 28 Sep 2022 18:09:38 -0400 Subject: [PATCH] *Initial version --- .woodpecker.yml | 18 ++++++++++++++++++ lumeweb.gpg | Bin 0 -> 1238 bytes nfpm.yaml | 17 +++++++++++++++++ scripts/postinstall.sh | 4 ++++ scripts/postremove.sh | 3 +++ source.list | 1 + 6 files changed, 43 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 lumeweb.gpg create mode 100644 nfpm.yaml create mode 100644 scripts/postinstall.sh create mode 100644 scripts/postremove.sh create mode 100644 source.list diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..2cd007a --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,18 @@ +pipeline: + package: + image: ghcr.io/goreleaser/nfpm + commands: + - nfpm pkg --packager deb + publish: + image: woodpeckerci/plugin-s3 + settings: + endpoint: sfo3.digitaloceanspaces.com + bucket: + from_secret: s3_bucket + access_key: + from_secret: s3_access_key + secret_key: + from_secret: s3_secret_key + source: "*.deb" + target: / + acl: public-read diff --git a/lumeweb.gpg b/lumeweb.gpg new file mode 100644 index 0000000000000000000000000000000000000000..13de92d37837ed1482cbade0f7aa24549eb9e76e GIT binary patch literal 1238 zcmV;{1S$KO0SyFWGfi{>2mrRLKX^{==hds(M2IV$CR8m_#e$u-e1W18=#1;zr+Kc! ziP~!zs`G-s!ELZ{U0TiT=&Wq4!@uxc`CZ=Mk;TlWOsVpcG+8FI8<{0WtP zrVwbfd#{jlum^wDO=Wc*s0mTbz(X@o3)B<0Ykm!PI?6~EA(9MF$k~nte9LG$ zl3jf0>09vOmfEwy7qtKp0RRECDok~4Wgu5&Vjxp#XKrb3XCO;uc_2JvZ*Fv9V{|}l zb!}yLWnwO4Z*4w_0Zs%H0SW*(79j+|khJSA`(rD0{ZEcClERS}OxSk?0%J2xbOIX# z1q%rX2Lc8a3JC}c0t6NU0|5da0Rk6*0162ZFp|QN7fjf9^Y{n;EdH#GFf0<)TGSZ% zQy)?TeFBaaC_O63Zw<1y1dQHE;r<34y<=c33*;ek>Nf>;W!k2S*fr@*h+q)`nB7g( z&mKF~7LE)|C$DH{8G9W)>yJ7Hu#lS?=KShG!S~Uo19bZUODJGSORM&@tP01;Hc`x8 zh{G2lZ#>s0=T01~j8(-f{;Z1*w|FUX9?a|&$rgqi{>P8YeL$P zlzwZv^y7MXs+M%2#+OMy_Wdx7^};{@N|LwL*|_S&dFd{*_7|>f%h=uiS?|O8|Envl~xd9CXV>3;30SExds*uJC zEKQ+(&v_Yf1xq@OH2|2~GpYahDXdRunQw$cq3do!^fABox6IZ1r2-<72P5lmiid4% zJX!FibR`cRUP@g}tKH2~cn4H?=RJ$3S2X#qrxbiL23bkz^} z!ld>#;b94Su+Stx1z#c|71t#vfjjhPl#^LSbx7D^u~w(eo>FW2SZ#9v5di=Ji2*hQ z7y$|ZAQmA6!H~4;F8gCEb^T9{Fp|QN7fjf91p;F;O>_bq3;+rV5HOO$krzzZcaLER z0D}f(Bgz4C;cl!%gP2C4?%5(uowm>h`#T@s@y!L^yF3$_Ur&{|T>2#Zbr+i>v3m&E z-RAo!G7JWwIdO7&S7_nT;CcDS_IiV>5Cg+4wE@WcSGxHvaoA7q{IVvp99k8yULJi& z0acUkr5K3T9TDc{&CvDojLt+5NFtejyaB{*vZ=-gmWo*G z66Vxr3iD{2&Jny~$z~xG=Y*f}*@^jbi%3;x%IMS`jB@5`N%UhJz?u+TaLc(A^7fHQ A{r~^~ literal 0 HcmV?d00001 diff --git a/nfpm.yaml b/nfpm.yaml new file mode 100644 index 0000000..88f1a98 --- /dev/null +++ b/nfpm.yaml @@ -0,0 +1,17 @@ +name: "lumeweb-repo" +arch: "amd64" +platform: "linux" +version: "v0.1.0" +section: "default" +priority: "extra" +maintainer: "Derrick Hammer contact@lumeweb.com" +description: Repository package For Lume Web relay software +vendor: "Hammer Technologies LLC" +homepage: "https://lumeweb.com" +license: "MIT" +contents: +- src: lumeweb.gpg + dst: /usr/share/keyrings/lumeweb.gpg +scripts: + preinstall: ./scripts/preinstall.sh + postremove: ./scripts/postremove.sh diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh new file mode 100644 index 0000000..4681b2e --- /dev/null +++ b/scripts/postinstall.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +DISTRO=$(lsb_release -cs) +echo "deb [signed-by=/usr/share/keyrings/lumeweb.gpg] https://apt.web3relay.io/ubuntu ${DISTRO} main" | tee /etc/apt/sources.list.d/lumeweb.list diff --git a/scripts/postremove.sh b/scripts/postremove.sh new file mode 100644 index 0000000..35b965d --- /dev/null +++ b/scripts/postremove.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +rm -f /etc/apt/sources.list.d/lumeweb.list diff --git a/source.list b/source.list new file mode 100644 index 0000000..64584bd --- /dev/null +++ b/source.list @@ -0,0 +1 @@ +deb [signed-by=/usr/share/keyrings/lumeweb.gpg] https://apt.web3relay.io/ubuntu focal main