-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 1.02 KB
/
container.yml
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
## https://github.com/devcontainers/ci/blob/main/docs/github-action.md
## Our purpose here is only to check that the devcontainer remains valid, cached and current.
## So
## - We will not run the tests. We only build on push to main.
##
permissions: write-all
name: 'build'
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
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 and run Dev Container task
uses: devcontainers/ci@v0.3
with:
# Change this to point to your image name
imageName: ghcr.io/quafadas/scala-js-live-server
# Change this to be your CI task/script
runCmd: |
# Add multiple commands to run if needed
./mill -v
./mill __.compile