fix: update validate.yml for split-base Dockerfiles
Validate / validate-omos (push) Failing after 20s
Validate / docs-check (push) Successful in 22s
Validate / validate-with-pi (push) Failing after 3m8s
Validate / validate-omos-with-pi (push) Failing after 3m6s
Validate / validate-base (push) Failing after 14m57s
Validate / validate-omos (push) Failing after 20s
Validate / docs-check (push) Successful in 22s
Validate / validate-with-pi (push) Failing after 3m8s
Validate / validate-omos-with-pi (push) Failing after 3m6s
Validate / validate-base (push) Failing after 14m57s
Replace single-Dockerfile build with two-step: build Dockerfile.base first (loads as opencode-devbox:validate-base), then build Dockerfile.variant with BASE_IMAGE pointing at the local base image. All four validate jobs updated.
This commit is contained in:
@@ -79,13 +79,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
driver-opts: network=host
|
driver-opts: network=host
|
||||||
|
|
||||||
|
- name: Build base layer (amd64, load to local daemon)
|
||||||
|
uses: docker/build-push-action@v7
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.base
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
tags: opencode-devbox:validate-base
|
||||||
|
|
||||||
- name: Build base image (amd64, load to local daemon)
|
- name: Build base image (amd64, load to local daemon)
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: Dockerfile.variant
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
|
build-args: |
|
||||||
|
BASE_IMAGE=opencode-devbox:validate-base
|
||||||
tags: opencode-devbox:ci-base
|
tags: opencode-devbox:ci-base
|
||||||
|
|
||||||
- name: Smoke test
|
- name: Smoke test
|
||||||
@@ -133,14 +146,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
driver-opts: network=host
|
driver-opts: network=host
|
||||||
|
|
||||||
|
- name: Build base layer (amd64, load to local daemon)
|
||||||
|
uses: docker/build-push-action@v7
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.base
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
tags: opencode-devbox:validate-base
|
||||||
|
|
||||||
- name: Build omos image (amd64, load to local daemon)
|
- name: Build omos image (amd64, load to local daemon)
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: Dockerfile.variant
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
build-args: |
|
build-args: |
|
||||||
|
BASE_IMAGE=opencode-devbox:validate-base
|
||||||
INSTALL_OMOS=true
|
INSTALL_OMOS=true
|
||||||
tags: opencode-devbox:ci-omos
|
tags: opencode-devbox:ci-omos
|
||||||
|
|
||||||
@@ -189,14 +214,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
driver-opts: network=host
|
driver-opts: network=host
|
||||||
|
|
||||||
|
- name: Build base layer (amd64, load to local daemon)
|
||||||
|
uses: docker/build-push-action@v7
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.base
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
tags: opencode-devbox:validate-base
|
||||||
|
|
||||||
- name: Build with-pi image (amd64, load to local daemon)
|
- name: Build with-pi image (amd64, load to local daemon)
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: Dockerfile.variant
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
build-args: |
|
build-args: |
|
||||||
|
BASE_IMAGE=opencode-devbox:validate-base
|
||||||
INSTALL_PI=true
|
INSTALL_PI=true
|
||||||
tags: opencode-devbox:ci-with-pi
|
tags: opencode-devbox:ci-with-pi
|
||||||
|
|
||||||
@@ -245,14 +282,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
driver-opts: network=host
|
driver-opts: network=host
|
||||||
|
|
||||||
|
- name: Build base layer (amd64, load to local daemon)
|
||||||
|
uses: docker/build-push-action@v7
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.base
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
tags: opencode-devbox:validate-base
|
||||||
|
|
||||||
- name: Build omos+with-pi image (amd64, load to local daemon)
|
- name: Build omos+with-pi image (amd64, load to local daemon)
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: Dockerfile.variant
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
build-args: |
|
build-args: |
|
||||||
|
BASE_IMAGE=opencode-devbox:validate-base
|
||||||
INSTALL_OMOS=true
|
INSTALL_OMOS=true
|
||||||
INSTALL_PI=true
|
INSTALL_PI=true
|
||||||
tags: opencode-devbox:ci-omos-with-pi
|
tags: opencode-devbox:ci-omos-with-pi
|
||||||
|
|||||||
Reference in New Issue
Block a user