mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
feat(devcontainer): split into build and run configfiles
Signed-off-by: Vegard Hagen <[email protected]>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
name: Build devcontainer
|
||||
|
||||
on:
|
||||
workflow_dispatch: { }
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths: [ ".devcontainer/**" ]
|
||||
@@ -12,7 +11,7 @@ jobs:
|
||||
build:
|
||||
name: Build devcontainer
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 240
|
||||
timeout-minutes: 120
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
@@ -37,6 +36,7 @@ jobs:
|
||||
- name: Pre-build dev container image
|
||||
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #v0.3.1900000417
|
||||
with:
|
||||
configFile: ./.devcontainer/devcontainer-build.json
|
||||
platform: linux/amd64,linux/arm64
|
||||
imageName: ghcr.io/vehagn/homelab-devcontainer
|
||||
cacheFrom: ghcr.io/vehagn/homelab-devcontainer
|
||||
|
||||
@@ -39,7 +39,6 @@ jobs:
|
||||
- name: Tofu init
|
||||
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #v0.3.1900000417
|
||||
with:
|
||||
imageName: ghcr.io/vehagn/homelab-devcontainer
|
||||
cacheFrom: ghcr.io/vehagn/homelab-devcontainer
|
||||
push: never
|
||||
runCmd: tofu -chdir=${{ env.TOFU_DIR }} init
|
||||
@@ -47,7 +46,6 @@ jobs:
|
||||
- name: Tofu validate
|
||||
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #v0.3.1900000417
|
||||
with:
|
||||
imageName: ghcr.io/vehagn/homelab-devcontainer
|
||||
cacheFrom: ghcr.io/vehagn/homelab-devcontainer
|
||||
push: never
|
||||
runCmd: tofu -chdir=${{ env.TOFU_DIR }} validate
|
||||
@@ -55,7 +53,6 @@ jobs:
|
||||
- name: Tofu format
|
||||
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #v0.3.1900000417
|
||||
with:
|
||||
imageName: ghcr.io/vehagn/homelab-devcontainer
|
||||
cacheFrom: ghcr.io/vehagn/homelab-devcontainer
|
||||
push: never
|
||||
runCmd: tofu -chdir=${{ env.TOFU_DIR }} fmt -recursive -diff -check
|
||||
|
||||
Reference in New Issue
Block a user