Re: Github Actions

2019-09-04 Thread Zoran Regvart
Hi Francis,

On Tue, Aug 27, 2019 at 12:19 PM Francis Chuang
 wrote:
>
> I have implemented the ability to generate the website and javadoc for
> Calcite using Github Actions. See:
> https://github.com/apache/calcite/tree/test-site/.github/workflows
>
> The missing piece is that we need the token to publish to our
> calcite-site repository to be added as a secret in Github Actions and
> there is currently no clear process as to whether this is allowed or how
> to get this done.

In your GitHub actions try cloning from github.com rather than
gitbox.apache.org, I think you'll find that you can push to a
github.com repository without authentication from a GitHub action.

zoran
-- 
Zoran Regvart


Re: Running Jekyll build on websites

2019-09-04 Thread Zoran Regvart
Hi Bertrand

On Tue, Aug 27, 2019 at 9:39 AM Bertrand Delacretaz
 wrote:
>
> Hi,
>
> On Wed, Aug 7, 2019 at 1:33 PM Zoran Regvart  wrote:
> >
> > ...for the Camel website we opted using docker containers with the
> > required tools instead of relying on the tools provided on the build
> > nodes
>
> Did you get this to run on an ASF build service, or do people have to
> run the build locally?

We have the build running on ASF Jenkins[1], we're using pipeline
build[2], so for multibranch pipeline job, to get the pull requests
built I had to provide my own personal GitHub access token.

This is a major nuisance, and there was a discussion on this previously[3][4],

zoran


[1] https://builds.apache.org/job/Camel.website/
[2] https://github.com/apache/camel-website/blob/master/Jenkinsfile
[3] 
https://mail-archives.apache.org/mod_mbox/www-builds/201812.mbox/%3CCABD_Zr9uS1Ux63FYEyVOz9yi55j0DdOEz7uyFKRO9Lx0%3DdwAfw%40mail.gmail.com%3E
[4] https://issues.apache.org/jira/browse/INFRA-17449

--
Zoran Regvart


[Hosting] Planned building power grid updates: September 5 to 6, 2019

2019-09-04 Thread Lance Albertson
All,

The University is in the middle of doing a variety of power grid updates
[1] to campus which impact the building our datacenter is in (Kerr
Admin). *This
should not impact any production services since the data center will be on
generator power* however I like to notify everyone just in case something
goes wrong. Our building will only experience *limited* electrical service
interruptions and will be without power for approximately two hours at the
start of the project (Thursday, September 5 from 5-7am PDT (1200-1400 UTC))
and two hours at the end of the project (Friday, September 6 from 5-7am
(1200-1400 UTC)).

If you have any questions please let me know.

[1] https://powergrid.oregonstate.edu/

-- 
Lance Albertson
Director
Oregon State University | Open Source Lab
___
Hosting mailing list
host...@osuosl.org
https://lists.osuosl.org/mailman/listinfo/hosting


Re: Github Actions

2019-09-04 Thread Francis Chuang

Hi Zoran,

I tired cloning from github.com, but pushing to it is still denied.

If I don't set any credentials in git, it complains that there is no 
username for github.com: 
https://github.com/apache/calcite/commit/d55e389310dcd024ae96623692a1e0a67274873c/checks


If I set the GITHUB_TOKEN as the credential, I get a 403: 
https://github.com/apache/calcite/runs/212573263


Francis

On 4/09/2019 10:04 pm, Zoran Regvart wrote:

Hi Francis,

On Tue, Aug 27, 2019 at 12:19 PM Francis Chuang
 wrote:


I have implemented the ability to generate the website and javadoc for
Calcite using Github Actions. See:
https://github.com/apache/calcite/tree/test-site/.github/workflows

The missing piece is that we need the token to publish to our
calcite-site repository to be added as a secret in Github Actions and
there is currently no clear process as to whether this is allowed or how
to get this done.


In your GitHub actions try cloning from github.com rather than
gitbox.apache.org, I think you'll find that you can push to a
github.com repository without authentication from a GitHub action.

zoran



Re: Github Actions

2019-09-04 Thread Zoran Regvart
Hi Francis,
either that little loophole was closed or you're missing `user.email`
and `user.name` in your git config. Here's[1] how we used to do it for
the Camel website.

zoran

[1] 
https://github.com/apache/camel-website/blob/master/.github/action-website/publish#L11-L12

On Thu, Sep 5, 2019 at 3:02 AM Francis Chuang  wrote:
>
> Hi Zoran,
>
> I tired cloning from github.com, but pushing to it is still denied.
>
> If I don't set any credentials in git, it complains that there is no
> username for github.com:
> https://github.com/apache/calcite/commit/d55e389310dcd024ae96623692a1e0a67274873c/checks
>
> If I set the GITHUB_TOKEN as the credential, I get a 403:
> https://github.com/apache/calcite/runs/212573263
>
> Francis
>
> On 4/09/2019 10:04 pm, Zoran Regvart wrote:
> > Hi Francis,
> >
> > On Tue, Aug 27, 2019 at 12:19 PM Francis Chuang
> >  wrote:
> >>
> >> I have implemented the ability to generate the website and javadoc for
> >> Calcite using Github Actions. See:
> >> https://github.com/apache/calcite/tree/test-site/.github/workflows
> >>
> >> The missing piece is that we need the token to publish to our
> >> calcite-site repository to be added as a secret in Github Actions and
> >> there is currently no clear process as to whether this is allowed or how
> >> to get this done.
> >
> > In your GitHub actions try cloning from github.com rather than
> > gitbox.apache.org, I think you'll find that you can push to a
> > github.com repository without authentication from a GitHub action.
> >
> > zoran
> >



-- 
Zoran Regvart


Re: Github Actions

2019-09-04 Thread Francis Chuang

Many thanks for the example, Zoran.

I think I see the problem now. For camel-website you're running Github 
actions in camel-website, so I think it implicitly allows you to push to 
the same repo.


In my case, I have actions in calcite, calcite-avatica and 
calcite-avatica-go pushing to calcite-site. I was thinking I could 
reverse the relationship and store the actions in calcite-site (thus 
avoiding the need to authenticate), but I don't think GH actions allow 
triggering on events that originate from other repositories.


Francis

On 5/09/2019 4:31 pm, Zoran Regvart wrote:

Hi Francis,
either that little loophole was closed or you're missing `user.email`
and `user.name` in your git config. Here's[1] how we used to do it for
the Camel website.

zoran

[1] 
https://github.com/apache/camel-website/blob/master/.github/action-website/publish#L11-L12

On Thu, Sep 5, 2019 at 3:02 AM Francis Chuang  wrote:


Hi Zoran,

I tired cloning from github.com, but pushing to it is still denied.

If I don't set any credentials in git, it complains that there is no
username for github.com:
https://github.com/apache/calcite/commit/d55e389310dcd024ae96623692a1e0a67274873c/checks

If I set the GITHUB_TOKEN as the credential, I get a 403:
https://github.com/apache/calcite/runs/212573263

Francis

On 4/09/2019 10:04 pm, Zoran Regvart wrote:

Hi Francis,

On Tue, Aug 27, 2019 at 12:19 PM Francis Chuang
 wrote:


I have implemented the ability to generate the website and javadoc for
Calcite using Github Actions. See:
https://github.com/apache/calcite/tree/test-site/.github/workflows

The missing piece is that we need the token to publish to our
calcite-site repository to be added as a secret in Github Actions and
there is currently no clear process as to whether this is allowed or how
to get this done.


In your GitHub actions try cloning from github.com rather than
gitbox.apache.org, I think you'll find that you can push to a
github.com repository without authentication from a GitHub action.

zoran