move devcontainer to containers

This commit is contained in:
kjeld Schouten-Lebbing
2021-05-30 13:23:27 +02:00
parent 7e63572201
commit 7ad57f65c7
3 changed files with 7 additions and 2 deletions
@@ -1,10 +1,10 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/ruby // https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/ruby
{ {
"name": "Go", "name": "TrueCharts-Dev",
"build": { "build": {
"context": "..", "context": "..",
"dockerfile": "Dockerfile", "dockerfile": "containers/dev/devcontainer/Dockerfile",
"args": { "args": {
"VARIANT": "1.16", "VARIANT": "1.16",
} }
+5
View File
@@ -8,11 +8,13 @@ on:
paths: paths:
- 'containers/apps/**' - 'containers/apps/**'
- 'containers/base/**' - 'containers/base/**'
- 'containers/dev/**'
- ".github/workflows/containers.build.yaml" - ".github/workflows/containers.build.yaml"
pull_request: pull_request:
paths: paths:
- 'containers/apps/**' - 'containers/apps/**'
- 'containers/base/**' - 'containers/base/**'
- 'containers/dev/**'
- ".github/workflows/containers.build.yaml" - ".github/workflows/containers.build.yaml"
env: env:
@@ -37,6 +39,7 @@ jobs:
changed: changed:
- 'containers/apps/**' - 'containers/apps/**'
- 'containers/base/**' - 'containers/base/**'
- 'containers/dev/**'
- run: echo '${{ toJson(steps.filter.outputs) }}' > changes.json - run: echo '${{ toJson(steps.filter.outputs) }}' > changes.json
- id: reduce - id: reduce
run: | run: |
@@ -77,6 +80,8 @@ jobs:
run: | run: |
if test -f "./containers/apps/${{ matrix.container }}/Dockerfile"; then if test -f "./containers/apps/${{ matrix.container }}/Dockerfile"; then
CATEGORY="apps" CATEGORY="apps"
elif test -f "./containers/dev/${{ matrix.container }}/Dockerfile"; then
CATEGORY="dev"
else else
CATEGORY="base" CATEGORY="base"
fi fi