5 Commits

Author SHA1 Message Date
a2123dc957 ci: install docker CLI static binary instead of setup-buildx-action
All checks were successful
CI / Terraform fmt + validate (pull_request) Successful in 1m14s
CI / Nomad job spec validate (pull_request) Successful in 23s
CI / Docker image pull validation (pull_request) Successful in 17s
2026-04-19 16:00:42 +10:00
f85d55aa55 ci: use docker/setup-buildx-action to provide docker CLI
Some checks failed
CI / Terraform fmt + validate (pull_request) Successful in 21s
CI / Nomad job spec validate (pull_request) Successful in 16s
CI / Docker image pull validation (pull_request) Failing after 49s
2026-04-19 15:55:19 +10:00
6c939840b5 ci: install docker CLI in image-pull job
Some checks failed
CI / Terraform fmt + validate (pull_request) Successful in 22s
CI / Nomad job spec validate (pull_request) Successful in 16s
CI / Docker image pull validation (pull_request) Failing after 14s
2026-04-19 15:49:51 +10:00
438afcb9f0 test: bump glance to v0.7.8 to exercise image-pull CI job
Some checks failed
CI / Terraform fmt + validate (pull_request) Successful in 21s
CI / Nomad job spec validate (pull_request) Successful in 16s
CI / Docker image pull validation (pull_request) Failing after 14s
2026-04-19 15:45:43 +10:00
f0018c2dd5 ci: add Docker image pull validation job (Phase 2) 2026-04-19 15:44:29 +10:00
4 changed files with 41 additions and 3 deletions

View File

@@ -52,3 +52,41 @@ jobs:
echo "==> $f"
nomad job validate "$f"
done
image-pull:
name: Docker image pull validation
runs-on: ubuntu-latest
# Only run on PRs that touch nomad job specs
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- 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*=' \
| grep -oP '"[^"]+:[^"]+"' \
| tr -d '"' \
| sort -u)
if [ -z "$IMAGES" ]; then
echo "No image changes detected, skipping pull."
exit 0
fi
FAILED=0
while IFS= read -r image; do
echo "==> Pulling $image"
if ! docker pull "$image"; then
echo "ERROR: Failed to pull $image"
FAILED=1
fi
done <<< "$IMAGES"
exit $FAILED

View File

@@ -12,7 +12,7 @@ job "glance" {
driver = "docker"
config {
image = "glanceapp/glance:latest"
image = "glanceapp/glance:v0.7.8"
ports = ["http"]
volumes = [
"local/glance.yml:/app/config/glance.yml",

View File

@@ -59,7 +59,7 @@ job "openreader" {
driver = "docker"
config {
image = "ghcr.io/richardr1126/openreader:v2.2.0"
image = "ghcr.io/richardr1126/openreader:v2.1.2"
ports = ["http"]
}

View File

@@ -296,7 +296,7 @@ exit 1
- [x] **Phase 1a**: Create `act-runner.nomad.hcl` + Terraform wrapper, register runner token in Gitea, get a hello-world workflow green
- [x] **Phase 1b**: Add `terraform fmt` + `terraform validate -backend=false` workflow — no secrets needed
- [x] **Phase 1c**: Add Nomad validate step — add `NOMAD_ADDR` + read-only `NOMAD_TOKEN` to Gitea secrets
- [ ] **Phase 2**: Add image pull validation step to the workflow
- [x] **Phase 2**: Add image pull validation step to the workflow
- [ ] **Phase 3a**: Add `update` stanzas to ntfy and glance (simplest, no volume conflict)
- [ ] **Phase 3b**: Add rolling `update` stanzas to remaining service jobs (jellyfin, sonarr, etc.)
- [ ] **Phase 3c**: Add health checks to openreader and unifi before adding update stanzas