Re: Pages not deploying?

Philipp Marek <[email protected]>
Newsgroups gmane.lisp.common-lisp-net.devel
Message-ID <[email protected]>
Hi all,

a short update --


I'm trying to find out how to access the last artifacts of a site, so 
that our
Apache on common-lisp.net/project can (internally) redirect to the data.


I can get artifacts via

	$ curl -H "Host: cmucl.pages.example.com" 
http://127.0.0.1:8090/-/cmucl-site/-/jobs/26695/artifacts/public/doc/index.html

but looking at [1] there's no way to access the last job ID
(without doing an explicit query against that project??).


gitlab-pages only redirects to gitlab back -- apache gives eg.

	gitlab.common-lisp.net.log:2a01:4f8:160:83c4::8 - - 
[07/Jan/2022:10:15:06 +0000]
	"GET 
/api/v4/projects/cmucl%2Fcmucl-site/jobs/26695/artifacts/public/doc/index.html 
HTTP/1.1"
	200 11750 "-" "Go-http-client/1.1"


Looking at [2] and finally [3] I tried to access

	$ curl 
https://gitlab.common-lisp.net/cmucl/cmucl-site/-/jobs/artifacts/-/raw/public/doc/index.html?job=pages

with a few variations, but I can't make it work - I only get 404.


I'll take another look later on; any help appreciated, of course.



[[ PS: During debugging I saw that:

	527473 10:15:06.098852 connect(9, {sa_family=AF_INET6, 
sin6_port=htons(9), inet_pton(AF_INET6, "2a01:4f8:160:83c4::8", 
&sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = 0

	Why is the discard service on port 9 contacted here?? ]]



Ad 1: 
https://gitlab.com/gitlab-org/gitlab-pages/-/blob/master/internal/artifact/artifact.go
Ad 2: https://docs.gitlab.com/ee/api/job_artifacts.html
Ad 3: 
https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html#access-the-latest-job-artifacts-by-url
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.