Re: Advice on Using 0install

Robin Moss <[email protected]> Tue, 8 Feb 2022 19:33:06 +0000
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAEbr9tveUT3Hc99kzCs4+nXogeYK+m-m57ZdX+TRGFkPVirWQA@mail.gmail.com>
--===============3341209039609513856==
Content-Type: multipart/alternative; boundary="000000000000e5a23805d786c9aa"

--000000000000e5a23805d786c9aa
Content-Type: text/plain; charset="UTF-8"

Thanks Bastian,

I was pretty close with my experiments then, just got stuck due to needing
to use credentials for access.

Regards,
Robin

On Tue, 8 Feb 2022, 17:38 Bastian Eicher, <[email protected]> wrote:

> Hi Robin,
>
> we run 0repo in GitHub Actions pipelines to manage the feeds hosted at
> https://apps.0install.net/. You can take a look at the setup here:
> https://github.com/0install/apps/tree/master/.github/workflows
>
> However, for a single feed 0repo is most likely overkill and 0publish is
> probably a better choice. Using it in a CI pipeline could look something
> like this:
>
> # Import GnuPG key without password for automatic signing
> gpg --quiet --import key.gpg
>
> # Download existing feed
> scp myserver:myapp.xml myapp.xml
>
> # Generate partial feed for new release
> 0template myapp.xml.template version=$VERSION
>
> # Merge generated partial feed into existing feed
> # Note: Feed is automatically resigned using the same GPG key
> 0publish myapp.xml -a myapp-$VERSION.xml
>
> # Upload resulting feed
> scp myapp.xml myserver:myapp.xml
>
> Regards
> Bastian
>
> --- Original message ---
> From: Robin Moss <[email protected]>
> Sent: 7th of Februar 2022 17:12
> To: [email protected]
> Subject: [Zero-install-devel] Advice on Using 0install
>
> Hello,
>
> We're evaluating using 0install and I would like some advice on how to get
> it setup for our use case.
>
> We have an existing build and release pipeline and would like to use
> 0install as an easy way for people within the company to install the
> internal product. I'm trying to understand how best to integrate 0install
> into this pipeline to produce just the feed file.
>
> I've gotten as far as using 0template to generate new files for releases,
> but 0repo doesn't seem ready for use in an automated pipeline yet, so I was
> then looking at 0publish as an alternative, although I'm not sure 0template
> and 0publish are compatible.
>
> Thanks in advance for any help and advice.
>
> Regards,
> Robin
>
>
>
> _______________________________________________
> Zero-install-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zero-install-devel
>

-- 


Notice: 
This email is confidential and may contain copyright material of 
members of the Ocado Group. Opinions and views expressed in this message 
may not necessarily reflect the opinions and views of the members of the 
Ocado Group.

If you are not the intended recipient, please notify us 
immediately and delete all copies of this message. Please note that it is 
your responsibility to scan this message for viruses.

References to the 
"Ocado Group" are to Ocado Group plc (registered in England and Wales with 
number 7098618) and its subsidiary undertakings (as that expression is 
defined in the Companies Act 2006) from time to time. The registered office 
of Ocado Group plc is Buildings One & Two, Trident Place, Mosquito Way, 
Hatfield, Hertfordshire, AL10 9UL.

--000000000000e5a23805d786c9aa
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>Thanks Bastian,</div><div dir=3D"auto"><br></div><di=
v dir=3D"auto">I was pretty close with my experiments then, just got stuck =
due to needing to use credentials for access.</div><div dir=3D"auto"><br></=
div><div dir=3D"auto">Regards,</div><div dir=3D"auto">Robin<br><br><div cla=
ss=3D"gmail_quote" dir=3D"auto"><div dir=3D"ltr" class=3D"gmail_attr">On Tu=
e, 8 Feb 2022, 17:38 Bastian Eicher, &lt;<a href=3D"mailto:[email protected]=
et">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e=
x">Hi Robin,<br>
<br>
we run 0repo in GitHub Actions pipelines to manage the feeds hosted at <a h=
ref=3D"https://apps.0install.net/" rel=3D"noreferrer noreferrer" target=3D"=
_blank">https://apps.0install.net/</a>. You can take a look at the setup he=
re: <a href=3D"https://github.com/0install/apps/tree/master/.github/workflo=
ws" rel=3D"noreferrer noreferrer" target=3D"_blank">https://github.com/0ins=
tall/apps/tree/master/.github/workflows</a><br>
<br>
However, for a single feed 0repo is most likely overkill and 0publish is pr=
obably a better choice. Using it in a CI pipeline could look something like=
 this:<br>
<br>
# Import GnuPG key without password for automatic signing<br>
gpg --quiet --import key.gpg<br>
<br>
# Download existing feed<br>
scp myserver:myapp.xml myapp.xml<br>
<br>
# Generate partial feed for new release<br>
0template myapp.xml.template version=3D$VERSION<br>
<br>
# Merge generated partial feed into existing feed<br>
# Note: Feed is automatically resigned using the same GPG key<br>
0publish myapp.xml -a myapp-$VERSION.xml<br>
<br>
# Upload resulting feed<br>
scp myapp.xml myserver:myapp.xml<br>
<br>
Regards<br>
Bastian<br>
<br>
--- Original message ---<br>
From: Robin Moss &lt;<a href=3D"mailto:[email protected]" target=3D"_bla=
nk" rel=3D"noreferrer">[email protected]</a>&gt; <br>
Sent: 7th of Februar 2022 17:12<br>
To: <a href=3D"mailto:[email protected]" target=3D"_=
blank" rel=3D"noreferrer">[email protected]</a><br>
Subject: [Zero-install-devel] Advice on Using 0install<br>
<br>
Hello,<br>
<br>
We&#39;re evaluating using 0install and I would like some advice on how to =
get it setup for our use case.<br>
<br>
We have an existing build and release pipeline and would like to use 0insta=
ll as an easy way for people within the company to install the internal pro=
duct. I&#39;m trying to understand how best to integrate 0install into this=
 pipeline to produce just the feed file.<br>
<br>
I&#39;ve gotten as far as using 0template to generate new files for release=
s, but 0repo doesn&#39;t seem ready for use in an automated pipeline yet, s=
o I was then looking at 0publish as an alternative, although I&#39;m not su=
re 0template and 0publish are compatible.<br>
<br>
Thanks in advance for any help and advice.<br>
<br>
Regards,<br>
Robin<br>
<br>
<br>
<br>
_______________________________________________<br>
Zero-install-devel mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blan=
k" rel=3D"noreferrer">[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/zero-install-devel"=
 rel=3D"noreferrer noreferrer" target=3D"_blank">https://lists.sourceforge.=
net/lists/listinfo/zero-install-devel</a><br>
</blockquote></div></div></div>

<br>
<p style=3D"margin:0px;background-color:rgb(255,255,255)"><font face=3D"Cal=
ibri, sans-serif" color=3D"#aeaaaa"><span style=3D"font-size:14.6667px">Not=
ice: <br>This email is confidential and may contain copyright material of m=
embers of the Ocado Group. Opinions and views expressed in this message may=
 not necessarily reflect the opinions and views of the members of the Ocado=
 Group.<br><br>If you are not the intended recipient, please notify us imme=
diately and delete all copies of this message. Please note that it is your =
responsibility to scan this message for viruses.<br><br>References to the &=
quot;Ocado Group&quot; are to Ocado Group plc (registered in England and Wa=
les with number 7098618) and its subsidiary undertakings (as that expressio=
n is defined in the Companies Act 2006) from time to time. The registered o=
ffice of Ocado Group plc is Buildings One &amp; Two, Trident Place, Mosquit=
o Way, Hatfield, Hertfordshire, AL10 9UL.</span></font></p>
--000000000000e5a23805d786c9aa--


--===============3341209039609513856==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============3341209039609513856==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Zero-install-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zero-install-devel

--===============3341209039609513856==--