Use ubuntu-latest and build images without running Homegate
All checks were successful
Test and publish Homegate / checks (push) Successful in 26s
Test and publish Homegate / publish (push) Successful in 12m46s

This commit is contained in:
2026-10-14 01:47:30 +03:00
parent 357daa8915
commit 3d329cc637
2 changed files with 21 additions and 19 deletions

View File

@@ -5,13 +5,13 @@ name: Test and publish Homegate
tags: ['v*']
pull_request:
# Use a dedicated Linux runner labelled homegate:host; see REGISTRY.md.
# Use a Linux runner labelled ubuntu-latest; see REGISTRY.md.
permissions:
contents: read
jobs:
checks:
runs-on: homegate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
@@ -38,15 +38,14 @@ jobs:
env:
PYTHONPATH: .
run: '"$TEST_PYTHON" ci/check_compose.py'
- name: Build and smoke-test runtime image
- name: Build image
env:
CI_REVISION: ${{ gitea.sha }}
run: |
set -eu
test_image="homegate-ci:$CI_REVISION-$$"
trap 'docker image rm "$test_image" >/dev/null 2>&1 || true' EXIT
docker build --build-arg VERSION="$(cat VERSION)" --tag "$test_image" .
sh ci/smoke_image.sh "$test_image"
build_image="homegate-ci:$CI_REVISION-$$"
trap 'docker image rm "$build_image" >/dev/null 2>&1 || true' EXIT
docker build --build-arg VERSION="$(cat VERSION)" --tag "$build_image" .
- name: Clean Python environment
if: always()
shell: bash
@@ -56,7 +55,7 @@ jobs:
publish:
needs: checks
if: gitea.event_name == 'push' && startsWith(gitea.ref, 'refs/tags/v')
runs-on: homegate
runs-on: ubuntu-latest
env:
DOCKER_BUILD_SUMMARY: "false"
DOCKER_BUILD_RECORD_UPLOAD: "false"