diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 84e58fd..76a3043 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -58,6 +58,11 @@ jobs: runs-on: ubuntu-latest # Only run on PRs that touch nomad job specs if: github.event_name == 'pull_request' + # Use the official Docker CLI image so we get a versioned, maintained docker + # binary without hardcoding a static download URL. The runner's docker socket + # is already mounted by act_runner, so docker commands work out of the box. + container: + image: docker:cli steps: - uses: actions/checkout@v4 @@ -66,8 +71,6 @@ jobs: - name: Pull changed images run: | - curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz \ - | tar -xz --strip-components=1 -C /usr/local/bin docker/docker git fetch origin ${{ github.base_ref }} IMAGES=$(git diff origin/${{ github.base_ref }}...HEAD -- '*.nomad.hcl' \ | grep '^+\s*image\s*=' \ diff --git a/2-nomad-config/act-runner.nomad.hcl b/2-nomad-config/act-runner.nomad.hcl index c082d72..8abd6d2 100644 --- a/2-nomad-config/act-runner.nomad.hcl +++ b/2-nomad-config/act-runner.nomad.hcl @@ -29,7 +29,6 @@ job "act-runner" { env = { GITEA_INSTANCE_URL = "https://gitea-1ef0bea6b75a4fd3e9393a9f7f7e4b02.othrayte.one" - CONFIG_FILE = "/secrets/runner-config.yml" } # Required SOPS key: @@ -43,19 +42,6 @@ EOF env = true } - # Limit which images/labels the runner will accept so it doesn't pick up - # unrelated workloads if more runners are added later. - template { - data = <