git-pages/action
6
39
Fork
You've already forked action
4

PR preview deployment fails in forgejo actions in debian container #13

Closed
opened 2026年06月19日 03:34:51 +02:00 by classabbyamp · 5 comments

example workflow:

on:pull_request:jobs:build:runs-on:codeberg-smallcontainer:image:debian:trixiesteps:- name:Preparerun:apt-get update && apt-get install --no-install-recommends -y nodejs git ca-certificates- name:Checkoutuses:actions/checkout@v5- name:Buildrun:mkdir public; echo '<html><body><h1>hello world!</h1></body></html>' >public/index.html- if:${{ forge.event_name == 'pull_request' }}name:Deploy Previewuses:actions/git-pages@v2with:site:https://${{ forge.event.repository.owner.username }}.preview.codeberg.page/${{ forge.event.repository.name }}@${{ forge.event.number }}/token:${{ forge.token }}source:public/

action output:

error: Put "https://classabbyamp.preview.codeberg.page/foulab-dot-org-hugo@2/": remote error: tls: internal error
⚙️ [runner]: exit with `FAILURE`: 1

example run: https://codeberg.org/classabbyamp/foulab-dot-org-hugo/actions/runs/14/jobs/1/attempt/1

example workflow: ```yaml on: pull_request: jobs: build: runs-on: codeberg-small container: image: debian:trixie steps: - name: Prepare run: apt-get update && apt-get install --no-install-recommends -y nodejs git ca-certificates - name: Checkout uses: actions/checkout@v5 - name: Build run: mkdir public; echo '<html><body><h1>hello world!</h1></body></html>' >public/index.html - if: ${{ forge.event_name == 'pull_request' }} name: Deploy Preview uses: actions/git-pages@v2 with: site: https://${{ forge.event.repository.owner.username }}.preview.codeberg.page/${{ forge.event.repository.name }}@${{ forge.event.number }}/ token: ${{ forge.token }} source: public/ ``` action output: ``` error: Put "https://classabbyamp.preview.codeberg.page/foulab-dot-org-hugo@2/": remote error: tls: internal error ⚙️ [runner]: exit with `FAILURE`: 1 ``` example run: https://codeberg.org/classabbyamp/foulab-dot-org-hugo/actions/runs/14/jobs/1/attempt/1

Try site: http:// instead. (If that works, that means there's a regression on Codeberg's side.)

Try `site: http://` instead. (If that works, that means there's a regression on Codeberg's side.)

with http://, there's a different error:

error: Put "http://classabbyamp.preview.codeberg.page/foulab-dot-org-hugo@2/": write tcp 10.89.136.2:49686->217.197.84.141:80: use of closed network connection
with `http://`, there's a different error: ``` error: Put "http://classabbyamp.preview.codeberg.page/foulab-dot-org-hugo@2/": write tcp 10.89.136.2:49686->217.197.84.141:80: use of closed network connection ```

@gusted did the HAProxy config for git-pages break somehow or am I missing things?

@gusted did the HAProxy config for git-pages break somehow or am I missing things?
it appears to work now, with nothing changed: https://codeberg.org/foulab/foulab-dot-org-hugo/actions/runs/22/jobs/1/attempt/1

There was a fix done on the Codeberg side.

There was a fix done on the Codeberg side.
Sign in to join this conversation.
No Branch/Tag specified
v2
v1
v2.2.0
v2.1.0
v2.0.0
v1.4.0
v1.2.0
v1.0.1
v1.0.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
git-pages/action#13
Reference in a new issue
git-pages/action
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?