Skip to content

Commit 000bd25

Browse files
committed
.github: Build devcontainer in build workflow
1 parent a75c96b commit 000bd25

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
default: ${{github.ref}}
99
required: false
1010
type: string
11+
build-devcontainer:
12+
description: "True will build the devcontainer"
13+
default: true
14+
required: false
15+
type: boolean
1116
outputs:
1217
artifact-name:
1318
description: "artifacts name"
@@ -24,6 +29,16 @@ on:
2429
workflow_dispatch:
2530

2631
jobs:
32+
build-devcontainer:
33+
uses: ./.github/workflows/build-devcontainer.yaml
34+
secrets: inherit
35+
with:
36+
tags: "${{ github.sha }}"
37+
# NOTE: We check "!= true" instead of just checking the value
38+
# since by default when the workflow is call with "workflow dispatch"
39+
# the input will (sadly) be "" and not use the default value
40+
skip: ${{ inputs.build-devcontainer != true }}
41+
2742
build:
2843
runs-on: ubuntu-20.04
2944
outputs:

0 commit comments

Comments
 (0)