Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
9644931
added cache
Irakus Mar 12, 2026
9cdc9b1
replace bats with build only
Irakus Mar 12, 2026
8c174a1
debug logs
Irakus Mar 12, 2026
53a5d5b
fix quotes
Irakus Mar 12, 2026
f90c8c7
set registry as cache
Irakus Mar 13, 2026
0ff17c9
enable debug logging
Irakus Mar 13, 2026
540052f
added ref
Irakus Mar 13, 2026
0cf1ff8
added maintenance job
Irakus Mar 16, 2026
ca51ef4
added missing checkout
Irakus Mar 16, 2026
c0441e0
added sudo
Irakus Mar 16, 2026
5729cea
prepare to run in workflow
Irakus Mar 16, 2026
3e5a387
remove debug line
Irakus Mar 16, 2026
2ad4fc4
remove debug line
Irakus Mar 16, 2026
98fad32
remove debug line
Irakus Mar 16, 2026
2915fe7
changed permissions and print docker config
Irakus Mar 16, 2026
73ad151
fix
Irakus Mar 16, 2026
60ce9b4
added permission
Irakus Mar 16, 2026
d107bbc
write deployments access
Irakus Mar 16, 2026
bc908da
override permissions for a job
Irakus Mar 16, 2026
0c5959e
changed used token
Irakus Mar 16, 2026
6def0f9
Revert "changed used token"
Irakus Mar 16, 2026
24a0c78
update
Irakus Mar 16, 2026
71ff290
remove debug step
Irakus Mar 16, 2026
033541c
maintenance
Irakus Mar 16, 2026
80c16a5
maintenance
Irakus Mar 16, 2026
71925cb
finished maintenance
Irakus Mar 16, 2026
e4be45f
Merge branch 'main' into docker_gha_cache
Irakus Mar 16, 2026
4a80fb2
Merge branch 'docker_gha_cache' of https://github.com/open-edge-platf…
Irakus Mar 16, 2026
ad333da
fix
Irakus Mar 16, 2026
d3b2760
fix
Irakus Mar 16, 2026
e315ec0
build all images instead
Irakus Mar 16, 2026
addb474
prepare pr for merge
Irakus Mar 16, 2026
43b4c9d
Merge branch 'main' into docker_gha_cache
Irakus Mar 16, 2026
b533154
run prettier write
Irakus Mar 16, 2026
57206d4
Merge branch 'docker_gha_cache' of https://github.com/open-edge-platf…
Irakus Mar 16, 2026
a409adc
debug
Irakus Mar 16, 2026
5c50980
fix branch name
Irakus Mar 16, 2026
76f327c
Merge branch 'main' into docker_gha_cache
Irakus Mar 16, 2026
4ebab0b
fix
Irakus Mar 16, 2026
3957e2a
Merge branch 'docker_gha_cache' of https://github.com/open-edge-platf…
Irakus Mar 16, 2026
2c8073f
Merge branch 'main' into docker_gha_cache
Irakus Mar 17, 2026
af11edf
Merge branch 'main' into docker_gha_cache
dmytroye Mar 17, 2026
f719640
Potential fix for pull request finding
Irakus Mar 17, 2026
02691ec
Revert "Potential fix for pull request finding"
Irakus Mar 17, 2026
4871b18
Merge branch 'main' into docker_gha_cache
Irakus Mar 17, 2026
bb0d8fb
fix for some images being cachec incorrectly
Irakus Mar 17, 2026
b6426df
Merge branch 'docker_gha_cache' of https://github.com/open-edge-platf…
Irakus Mar 17, 2026
e3aa534
set debug logs
Irakus Mar 18, 2026
f3c716b
fix args
Irakus Mar 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/tests-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ concurrency:
env:
DOCKER_BUILDKIT: 1
SUPASS: demo
GITHUB_ACTIONS_CACHE: true
CACHE_REGISTRY: ${{ github.repository }}
CACHE_TAG: ${{ github.head_ref || github.ref_name }}

permissions:
contents: read
Expand Down Expand Up @@ -72,6 +75,13 @@ jobs:
with:
system-prune: "true"

- name: "Log in to GHCR"
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Run Setup"
uses: ./.github/actions/setup-env

Expand Down Expand Up @@ -112,6 +122,13 @@ jobs:
with:
system-prune: "true"

- name: "Log in to GHCR"
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Run Setup"
uses: ./.github/actions/setup-env

Expand Down Expand Up @@ -152,6 +169,13 @@ jobs:
with:
system-prune: "true"

- name: "Log in to GHCR"
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Run Setup"
uses: ./.github/actions/setup-env

Expand Down Expand Up @@ -192,6 +216,13 @@ jobs:
with:
system-prune: "true"

- name: "Log in to GHCR"
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Run Setup"
uses: ./.github/actions/setup-env

Expand Down Expand Up @@ -232,6 +263,13 @@ jobs:
with:
system-prune: "true"

- name: "Log in to GHCR"
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Run Setup"
uses: ./.github/actions/setup-env

Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/tests-bat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ concurrency:
env:
DOCKER_BUILDKIT: 1
SUPASS: demo
GITHUB_ACTIONS_CACHE: true
CACHE_REGISTRY: ${{ github.repository }}
CACHE_TAG: ${{ github.head_ref || github.ref_name }}

permissions:
contents: read
Expand Down Expand Up @@ -135,6 +138,13 @@ jobs:
with:
system-prune: "true"

- name: "Log in to GHCR"
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Run Basic Acceptance Tests (BAT)"
run: |
make clean-all
Expand All @@ -152,6 +162,8 @@ jobs:
chart-deployment-test:
name: "Chart Deployment Test"
runs-on: [bat]
permissions:
packages: write # For using GHCR as cache registry
needs: [filter, check-pr-state]
if: ${{ needs.filter.outputs.code_changed == 'true' && (needs.check-pr-state.outputs.pr_state != 'true' || github.event_name == 'workflow_dispatch') }}
steps:
Expand All @@ -168,6 +180,13 @@ jobs:
python-version: "3.x"
check-latest: true

- name: "Log in to GHCR"
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install chart with timeout
run: KUBERNETES=1 DEPLOYMENT_TEST=1 ./deploy.sh

Expand Down
49 changes: 27 additions & 22 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ LOG_FILE := $(BUILD_DIR)/$(IMAGE).log
HAS_PIP ?= yes
HAS_DPKG ?= yes
USES_SCENE_COMMON ?= no
GITHUB_ACTIONS_CACHE ?= false
# Read the SHA-pinned image from the Dockerfile ARG default β€” single source of truth
RUNTIME_OS_IMAGE ?= $(shell sed -n 's/^ARG RUNTIME_OS_IMAGE=//p' Dockerfile)

Expand All @@ -23,32 +24,36 @@ GREEN := \033[0;32m
YELLOW := \033[0;33m
RESET := \033[0m


.PHONY: build-image
build-image: $(BUILD_DIR) Dockerfile
@echo -e "$(GREEN)------- STARTING BUILD OF IMAGE: $(IMAGE):$(VERSION) -------$(RESET)"
@{ \
set -e; \
set -o pipefail; \
TARGET_ARG=""; \
if [ -n "$(TARGET)" ]; then TARGET_ARG="--target $(TARGET)"; fi; \
if env BUILDKIT_PROGRESS=plain docker build $(REBUILDFLAGS) $$TARGET_ARG \
--build-arg http_proxy=$(http_proxy) \
--build-arg https_proxy=$(https_proxy) \
--build-arg no_proxy=$(no_proxy) \
--build-arg CERTDOMAIN=$(CERTDOMAIN) \
--build-arg FORCE_VAAPI=$(FORCE_VAAPI) \
$(EXTRA_BUILD_ARGS) \
--rm -t $(IMAGE):$(VERSION) \
-f ./Dockerfile .. 2>&1 | tee $(LOG_FILE); \
then \
docker tag $(IMAGE):$(VERSION) $(IMAGE):latest; \
echo -e "$(GREEN)------- BUILD OF IMAGE $(IMAGE):$(VERSION) COMPLETED SUCCESSFULLY -------$(RESET)"; \
echo "Log file created at $(LOG_FILE)"; \
else \
echo -e "$(RED)------- BUILD OF IMAGE $(IMAGE):$(VERSION) FAILED. CHECK $(LOG_FILE) FOR DETAILS. -------$(RESET)"; \
grep --color=auto -i -r "^error" $(LOG_FILE); \
exit 1; \
fi \
set -xe; \
set -o pipefail; \
if [ "$(GITHUB_ACTIONS_CACHE)" = "true" ]; then \
EXTRA_BUILD_ARGS+=" --cache-from type=registry,ref=ghcr.io/${CACHE_REGISTRY}/cache-$(IMAGE):${CACHE_TAG} --cache-from type=registry,ref=ghcr.io/${CACHE_REGISTRY}/cache-$(IMAGE):main --cache-to type=registry,ref=ghcr.io/${CACHE_REGISTRY}/cache-$(IMAGE):${CACHE_TAG},ignore-error=true"; \
fi; \
TARGET_ARG=""; \
if [ -n "$(TARGET)" ]; then TARGET_ARG="--target $(TARGET)"; fi; \
if env BUILDKIT_PROGRESS=plain docker build $(REBUILDFLAGS) $$TARGET_ARG \
--build-arg http_proxy=$(http_proxy) \
--build-arg https_proxy=$(https_proxy) \
--build-arg no_proxy=$(no_proxy) \
--build-arg CERTDOMAIN=$(CERTDOMAIN) \
--build-arg FORCE_VAAPI=$(FORCE_VAAPI) \
$$EXTRA_BUILD_ARGS \
--rm -t $(IMAGE):$(VERSION) \
-f ./Dockerfile .. 2>&1 | tee $(LOG_FILE); \
then \
docker tag $(IMAGE):$(VERSION) $(IMAGE):latest; \
echo -e "$(GREEN)------- BUILD OF IMAGE $(IMAGE):$(VERSION) COMPLETED SUCCESSFULLY -------$(RESET)"; \
echo "Log file created at $(LOG_FILE)"; \
else \
echo -e "$(RED)------- BUILD OF IMAGE $(IMAGE):$(VERSION) FAILED. CHECK $(LOG_FILE) FOR DETAILS. -------$(RESET)"; \
grep --color=auto -i -r "^error" $(LOG_FILE); \
exit 1; \
fi \
}

.PHONY: rebuild
Expand Down
Loading