Skip to content

Commit

Permalink
devcontainer for dev environment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum committed Mar 16, 2024
1 parent 742292d commit 862e29f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Tekton pipeline",
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04",
"features": {
"ghcr.io/devcontainers/features/go:1.3.0": {
"version": "1.22.1"
},
"ghcr.io/mpriscella/features/kind:1.0.1": {
"version": "0.22.0"
},
"ghcr.io/devcontainers-contrib/features/pre-commit:2.0.17": {
"version": "3.6.2"
}
}
}
18 changes: 18 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'build'
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout (GitHub)
uses: actions/[email protected]

- name: Build and run dev container task
uses: devcontainers/[email protected]
with:
runCmd: pwd
4 changes: 4 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ optional: As a convenience, the [Tekton plumbing project](https://github.com/tek
--user=$(gcloud config get-value core/account)
```

#### Using [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers)

- Follow the instruction for [getting up and running](https://code.visualstudio.com/docs/devcontainers/tutorial)

---

## Developing and testing
Expand Down

0 comments on commit 862e29f

Please sign in to comment.