Skip to content

Commit 3ca6e5d

Browse files
committed
Add Linux AMD64 builds
1 parent 093701a commit 3ca6e5d

File tree

3 files changed

+109
-28
lines changed

3 files changed

+109
-28
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: build-linux-amd64
2+
3+
on:
4+
push:
5+
branches:
6+
- "2e"
7+
paths:
8+
- ".github/workflows/build-linux-amd64.yaml"
9+
workflow_dispatch:
10+
11+
jobs:
12+
define-matrices:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
images: ${{ steps.images.outputs.images }}
16+
chapters: ${{ steps.chapters.outputs.chapters }}
17+
steps:
18+
- uses: actions/checkout@master
19+
- name: Generate image matrix
20+
id: images
21+
working-directory: build/image-lists
22+
shell: pwsh
23+
run: |
24+
$list = $(cat images-linux.json)
25+
$out = "images=$list"
26+
echo $out
27+
$out >> $env:GITHUB_OUTPUT
28+
- name: Generate chapter matrix
29+
id: chapters
30+
working-directory: build/image-lists
31+
shell: pwsh
32+
run: |
33+
$list = $(cat chapters-linux.json)
34+
$out = "chapters=$list"
35+
echo $out
36+
$out >> $env:GITHUB_OUTPUT
37+
38+
build-images-linux-amd64:
39+
runs-on: ubuntu-latest
40+
needs: define-matrices
41+
strategy:
42+
matrix:
43+
image: ${{ fromJSON(needs.define-matrices.outputs.images) }}
44+
steps:
45+
- name: Registry login
46+
uses: docker/login-action@v3
47+
with:
48+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
49+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
50+
- uses: actions/checkout@master
51+
- uses: ./.github/actions/build
52+
with:
53+
filter: ${{ matrix.image }}
54+
55+
build-chapters-linux-amd64:
56+
runs-on: ubuntu-latest
57+
needs: define-matrices
58+
strategy:
59+
matrix:
60+
chapter: ${{ fromJSON(needs.define-matrices.outputs.chapters) }}
61+
steps:
62+
- name: Registry login
63+
uses: docker/login-action@v3
64+
with:
65+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
66+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
67+
- uses: actions/checkout@master
68+
- uses: ./.github/actions/build
69+
with:
70+
images: 'false'
71+
chapters: 'true'
72+
filter: ${{ matrix.chapter }}

.github/workflows/images-linux-amd64.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: images-push-manifests
2+
3+
on:
4+
push:
5+
branches:
6+
- "2e"
7+
paths:
8+
- ".github/workflows/push-manifests.yaml"
9+
workflow_run:
10+
workflows:
11+
- build-linux-amd64
12+
- build-linux-arm64
13+
- build-windows-ltsc2019
14+
- build-windows-ltsc2022
15+
- build-windows-ltsc2025
16+
types: [completed]
17+
branches:
18+
- "main"
19+
workflow_dispatch:
20+
21+
jobs:
22+
push-manifests:
23+
runs-on: ubuntu-latest
24+
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
25+
steps:
26+
- uses: docker/login-action@v3
27+
with:
28+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
29+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
30+
- uses: actions/checkout@master
31+
- name: Push image manifests
32+
uses: ./.github/actions/push-manifests
33+
- name: Push chapter manifests
34+
uses: ./.github/actions/push-manifests
35+
with:
36+
images: 'false'
37+
chapters: 'true'

0 commit comments

Comments
 (0)