-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 799 Bytes
/
Copy pathcontainer.yml
File metadata and controls
30 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Container
# Exercise the container definition only when it changes, so the dev/artifact
# images can't rot while nobody is using them.
on:
push:
branches: [main]
paths: [".devcontainer/**", ".dockerignore"]
pull_request:
branches: [main]
paths: [".devcontainer/**", ".dockerignore"]
jobs:
preflight:
uses: ./.github/workflows/preflight.yml
build:
needs: preflight
if: needs.preflight.outputs.ok == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Build dev stage
run: docker build --target dev -f .devcontainer/Dockerfile .
- name: Build artifact stage (runs the test suite inside)
run: docker build --target artifact -f .devcontainer/Dockerfile .