Skip to content

Commit 80e3563

Browse files
committed
WIP gha split jobs to workaround buildx bug ?
ERROR: failed to solve: python:3.9-slim-bookworm: failed to authorize: failed to fetch oauth token: Post "https://auth.docker.io/token": EOF Error: buildx failed with: ERROR: failed to solve: python:3.9-slim-bookworm: failed to authorize: failed to fetch oauth token: Post "https://auth.docker.io/token": EOF This happen always but only for the second docker build.
1 parent 2758145 commit 80e3563

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,28 @@ env:
55
tikz_image: hapostgres/latexmk-pdftocairo:latest
66

77
on:
8-
push:
8+
pull_request:
99
branches:
1010
- main
11-
pull_request:
11+
push:
1212
branches:
1313
- main
1414

1515
workflow_dispatch:
1616

1717
jobs:
1818
docs:
19-
name: Building docs
19+
name: Build sphinx html
2020
runs-on: ubuntu-latest
2121
strategy:
22-
fail-fast: false
22+
fail-fast: true
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v4
2626

2727
- name: Set up Docker Buildx
2828
uses: docker/setup-buildx-action@v3
2929

30-
- name: Build hapostgres/latexmk-pdftocairo docker image
31-
uses: docker/build-push-action@v5
32-
with:
33-
context: ./docs/tikz
34-
load: true
35-
tags: ${{ env.tikz_image }}
36-
cache-from: type=gha
37-
cache-to: type=gha,mode=min
38-
39-
- name: Build pdf/png/svg files
40-
run: docker run --rm -v ./docs/tikz:/tikz ${{ env.tikz_image }} make all
41-
4230
- name: Build hapostgres/sphinx-citus docker image
4331
uses: docker/build-push-action@v5
4432
with:
@@ -50,3 +38,27 @@ jobs:
5038

5139
- name: Build docs with sphinx
5240
run: docker run --rm -v ./docs:/docs ${{ env.sphinx_image }} make html
41+
42+
pictures:
43+
name: Building latexmk/pdftocario pictures
44+
runs-on: ubuntu-latest
45+
strategy:
46+
fail-fast: true
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
51+
- name: Set up Docker Buildx
52+
uses: docker/setup-buildx-action@v3
53+
54+
- name: Build hapostgres/latexmk-pdftocairo docker image
55+
uses: docker/build-push-action@v5
56+
with:
57+
context: ./docs/tikz
58+
load: true
59+
tags: ${{ env.tikz_image }}
60+
cache-from: type=gha
61+
cache-to: type=gha,mode=min
62+
63+
- name: Build pdf/png/svg files
64+
run: docker run --rm -v ./docs/tikz:/tikz ${{ env.tikz_image }} make all

0 commit comments

Comments
 (0)