Skip to content

Commit f19fc9c

Browse files
committed
build dev container
1 parent a7ef5c0 commit f19fc9c

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/quality-checks.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ on:
2020
type: boolean
2121
description: Toggle to reinstall poetry on top of python version installed by asdf.
2222
default: false
23-
23+
asdfVersion:
24+
type: string
25+
required: false
26+
default: "v0.18.0"
2427
jobs:
2528
quality_checks:
2629
runs-on: ubuntu-22.04
@@ -71,23 +74,23 @@ jobs:
7174
7275
# using git commit sha for version of action to ensure we have stable version
7376
- name: Install asdf
74-
uses: asdf-vm/actions/setup@05e0d2ed97b598bfce82fd30daf324ae0c4570e6
77+
uses: asdf-vm/actions/setup@1902764435ca0dd2f3388eea723a4f92a4eb8302
7578
with:
76-
asdf_branch: v0.14.1
79+
asdf_version: ${{ inputs.asdfVersion }}
7780

7881
- name: Cache asdf
7982
uses: actions/cache@v4
8083
with:
8184
path: |
8285
~/.asdf
83-
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
86+
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}-${{ inputs.asdfVersion }}
8487
restore-keys: |
85-
${{ runner.os }}-asdf-
88+
${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}-${{ inputs.asdfVersion }}
8689
8790
- name: Install asdf dependencies in .tool-versions
88-
uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6
91+
uses: asdf-vm/actions/install@1902764435ca0dd2f3388eea723a4f92a4eb8302
8992
with:
90-
asdf_branch: v0.14.1
93+
asdf_version: ${{ inputs.asdfVersion }}
9194
env:
9295
PYTHON_CONFIGURE_OPTS: --enable-shared
9396

@@ -354,3 +357,17 @@ jobs:
354357
env:
355358
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
356359
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
360+
361+
build_dev_container:
362+
runs-on: ubuntu-22.04
363+
steps:
364+
- name: Checkout code
365+
uses: actions/checkout@v5
366+
with:
367+
ref: ${{ env.BRANCH_NAME }}
368+
fetch-depth: 0
369+
370+
- name: Build dev container
371+
run: |
372+
docker buildx create --use
373+
docker buildx build --platform linux/amd64,linux/arm64 -f .devcontainer/Dockerfile -t dev-container-image .

0 commit comments

Comments
 (0)