-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 2.04 KB
/
example.yml
File metadata and controls
65 lines (57 loc) · 2.04 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: 'build example'
on: workflow_dispatch # manually run, see build-image.yml for automation on push/pull request
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build/Run Minimal Devcontainer
uses: devcontainers/ci@v0.3
with:
configFile: ./.devcontainer/1-minimal/devcontainer.json
imageName: ghcr.io/392781/1-minimal
cacheFrom: ghcr.io/392781/1-minimal
push: never
runCmd: uname -a
- name: Build/Run Alternate Devcontainer
uses: devcontainers/ci@v0.3
with:
configFile: ./.devcontainer/2-alternate/devcontainer.json
imageName: ghcr.io/392781/2-alternate
cacheFrom: ghcr.io/392781/2-alternate
push: never
runCmd: g++ --version
- name: Build/Run RStudio Container
uses: devcontainers/ci@v0.3
with:
configFile: ./.devcontainer/3-rstudio/devcontainer.json
imageName: ghcr.io/392781/3-rstudio
cacheFrom: ghcr.io/392781/3-rstudio
push: never
runCmd: rstudio-server version
- name: Build/Run Customized Container
uses: devcontainers/ci@v0.3
with:
configFile: ./.devcontainer/4-customized/devcontainer.json
imageName: ghcr.io/392781/4-customized
cacheFrom: ghcr.io/392781/4-customized
push: always
runCmd: radian --version
- name: Build/Run GUI Container
uses: devcontainers/ci@v0.3
with:
configFile: ./.devcontainer/6-gui/devcontainer.json
imageName: ghcr.io/392781/6-gui
cacheFrom: ghcr.io/392781/6-gui
push: never
runCmd: vncserver --version