Skip to content

Commit 0b11034

Browse files
KyllianAubryGitHub Enterprise
authored andcommitted
SKA-1061: use Windows Docker container (#214)
1 parent df2dd70 commit 0b11034

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

.github/workflows/build-test-internal.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,30 @@ concurrency:
1010
cancel-in-progress: false
1111

1212
jobs:
13+
# Get environment variable for windows docker image URI and provide it to next build step
14+
prep-windows:
15+
runs-on: [Windows, ska, docker]
16+
outputs:
17+
image: ${{ steps.set_image.outputs.image }}
18+
environment: build-action
19+
steps:
20+
- id: set_image
21+
run: echo "image=${{ vars.WIN_DOCKER_IMAGE_URI }}" >> $env:GITHUB_OUTPUT
22+
23+
# Get environment variable for linux docker image URI and provide it to next build step
24+
prep-linux:
25+
runs-on: [Linux, self-hosted, ska]
26+
outputs:
27+
image: ${{ steps.set_image.outputs.image }}
28+
environment: build-action
29+
steps:
30+
- id: set_image
31+
run: echo "image=${{ vars.LINUX_DOCKER_IMAGE_URI }}" >> "$GITHUB_OUTPUT"
32+
1333
build-windows:
14-
runs-on: [self-hosted, Windows, ska]
34+
runs-on: [Windows, ska, docker]
35+
needs: prep-windows
36+
container: ${{ needs.prep-windows.outputs.image }}
1537

1638
steps:
1739
# Check out this Git repo
@@ -38,8 +60,9 @@ jobs:
3860
# Build the project, then remove the built artifacts
3961
build-linux:
4062
runs-on: [Linux, self-hosted, ska]
63+
needs: prep-linux
4164
container:
42-
image: pnd-sil-kit-adapters-docker-prod.vegistry.vg.vector.int/sil_kit_adapters_ci_workflow:ubuntu2404_build
65+
image: ${{ needs.prep-linux.outputs.image }}
4366
credentials:
4467
username: ${{ secrets.ARTIFACTORY_USR }}
4568
password: ${{ secrets.ARTIFACTORY_PSW }}

0 commit comments

Comments
 (0)