-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (51 loc) · 1.55 KB
/
devcontainer-ci.yaml
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
name: devcontainer-ci
on:
push:
paths-ignore:
- README.md
- LICENSE.md
- 'docs/**'
- '.github/workflows/actions.yaml'
- '.github/workflows/codeql-analysis.yaml'
- '.github/dependabot.yaml'
- '.gitignore'
branches:
- root
pull_request:
paths-ignore:
- README.md
- LICENSE.md
- 'docs/**'
- '.github/workflows/actions.yaml'
- '.github/workflows/codeql-analysis.yaml'
- '.github/dependabot.yaml'
- '.gitignore'
workflow_dispatch:
jobs:
devcontainer-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Setup Docker BuildKit
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Build and run dev container task
uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8 # v0.3.1900000349
with:
imageName: ghcr.io/jjliggett/jjversion-dc
runCmd: |
echo "Starting"
make test
go vet
go test ./...
go build -o jjversion
./jjversion
./jjversion | jq --raw-output '.MajorMinorPatch'
docker build -t jjliggett/jjversion .
docker run -d --name jjversion jjliggett/jjversion sleep infinity
docker cp . jjversion:/repo
docker exec -t jjversion jjversion
docker kill jjversion
docker rm jjversion
push: never