Skip to content

Commit 4c70934

Browse files
committed
Use custom action for Windows 2022 & 2025
1 parent 96d2ce8 commit 4c70934

File tree

2 files changed

+38
-8
lines changed

2 files changed

+38
-8
lines changed

.github/workflows/images-windows-ltsc2022.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,28 @@ jobs:
1313
images-windows-ltsc2022:
1414
runs-on: windows-2022
1515
steps:
16-
- uses: actions/checkout@master
17-
- name: Build and push Windows LTSC2022 images
18-
working-directory: build
16+
17+
- name: Docker Hub login
1918
shell: pwsh
2019
run: |
2120
docker login -u $env:USER -p $env:TOKEN
22-
./build.ps1 -Images
2321
env:
2422
USER: ${{ secrets.DOCKER_HUB_USERNAME }}
2523
TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
24+
25+
- name: Checkout
26+
uses: actions/checkout@master
27+
28+
- name: Build Git Windows image
29+
uses: ./.github/actions/build
30+
with:
31+
filter: 'git-windows'
32+
33+
- name: Build base images
34+
uses: ./.github/actions/build
35+
36+
- name: Build chapter images
37+
uses: ./.github/actions/build
38+
with:
39+
images: 'false'
40+
chapters: 'true'

.github/workflows/images-windows-ltsc2025.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,28 @@ jobs:
1313
images-windows-ltsc2025:
1414
runs-on: windows-2025
1515
steps:
16-
- uses: actions/checkout@master
17-
- name: Build and push Windows LTSC2025 images
18-
working-directory: build
16+
17+
- name: Docker Hub login
1918
shell: pwsh
2019
run: |
2120
docker login -u $env:USER -p $env:TOKEN
22-
./build.ps1 -Images
2321
env:
2422
USER: ${{ secrets.DOCKER_HUB_USERNAME }}
2523
TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
24+
25+
- name: Checkout
26+
uses: actions/checkout@master
27+
28+
- name: Build Git Windows image
29+
uses: ./.github/actions/build
30+
with:
31+
filter: 'git-windows'
32+
33+
- name: Build base images
34+
uses: ./.github/actions/build
35+
36+
- name: Build chapter images
37+
uses: ./.github/actions/build
38+
with:
39+
images: 'false'
40+
chapters: 'true'

0 commit comments

Comments
 (0)