Use ubuntu-latest and build images without running Homegate
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user