-
Notifications
You must be signed in to change notification settings - Fork 68
49 lines (42 loc) · 1.18 KB
/
devcontainer.yml
File metadata and controls
49 lines (42 loc) · 1.18 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Devcontainer
on:
push:
branches: [main, dev]
paths:
- '.devcontainer/**'
- 'docker-compose.yml'
- '.github/workflows/devcontainer.yml'
pull_request:
branches: [main, dev]
paths:
- '.devcontainer/**'
- 'docker-compose.yml'
- '.github/workflows/devcontainer.yml'
workflow_dispatch:
concurrency:
group: devcontainer-${{ github.ref }}
cancel-in-progress: true
jobs:
build-devcontainer:
name: Build Devcontainer image
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Build devcontainer image
uses: devcontainers/ci@v0.3
with:
runCmd: echo "Devcontainer image built successfully"
configFile: .devcontainer/devcontainer.json
noCache: false
push: never
validate-compose:
name: Validate Docker Compose
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Validate root compose file
run: docker compose -f docker-compose.yml config
- name: Validate devcontainer compose file
run: docker compose -f .devcontainer/docker-compose.yml config