testing on the new images!
Some checks failed
Test Actions (self-test) / Build tiny multi-arch image (runner-full-arm64) (push) Has been cancelled
Test Actions (self-test) / Test Kubernetes actions (runner-full-arm64) (push) Has been cancelled
Test Actions (self-test) / Test SSH deploy action (runner-full-arm64) (push) Has been cancelled
Test Actions (self-test) / Build tiny multi-arch image (runner-full-amd64) (push) Failing after 1s
Test Actions (self-test) / Test SSH deploy action (runner-full-amd64) (push) Failing after 1s
Test Actions (self-test) / Test Kubernetes actions (runner-full-amd64) (push) Failing after 2s

This commit is contained in:
2026-07-13 21:23:13 -03:00
parent b41dfb68c6
commit 8c999e2838
3 changed files with 23 additions and 13 deletions

View File

@@ -18,8 +18,11 @@ env:
jobs: jobs:
test-build-push: test-build-push:
name: Build tiny multi-arch image name: Build tiny multi-arch image (${{ matrix.runner }})
runs-on: ubuntu-amd64 runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [runner-full-amd64, runner-full-arm64]
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -58,8 +61,11 @@ jobs:
echo "self-test PASSED: multi-arch image built and pushed" echo "self-test PASSED: multi-arch image built and pushed"
test-k8s: test-k8s:
name: Test Kubernetes actions name: Test Kubernetes actions (${{ matrix.runner }})
runs-on: ubuntu-amd64 runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [runner-full-amd64, runner-full-arm64]
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -97,8 +103,11 @@ jobs:
fi fi
test-ssh: test-ssh:
name: Test SSH deploy action name: Test SSH deploy action (${{ matrix.runner }})
runs-on: ubuntu-amd64 runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [runner-full-amd64, runner-full-arm64]
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@@ -80,7 +80,7 @@ env:
jobs: jobs:
build: build:
name: Build Image name: Build Image
runs-on: ubuntu-amd64 runs-on: runner-slim-amd64
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main - uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main
@@ -91,7 +91,7 @@ jobs:
deploy: deploy:
name: Deploy (internal) name: Deploy (internal)
runs-on: ubuntu-amd64 runs-on: runner-slim-amd64
needs: build needs: build
steps: steps:
# Deployment specs live in the repo; apply them with kubectl-apply. # Deployment specs live in the repo; apply them with kubectl-apply.
@@ -126,7 +126,7 @@ Consumer projects must set these secrets in Gitea repo settings (Settings → Ac
- Pin composite action refs to `@main` until version tags are created. - Pin composite action refs to `@main` until version tags are created.
- Every job **must** have a `name:` field (e.g. `name: Build Image`, `name: Deploy (internal)`). Unnamed jobs render as their raw ID (`build`, `deploy`, …) in the Gitea Actions UI and run logs. The workflow template above includes `name:` on every job — copy it as-is. - Every job **must** have a `name:` field (e.g. `name: Build Image`, `name: Deploy (internal)`). Unnamed jobs render as their raw ID (`build`, `deploy`, …) in the Gitea Actions UI and run logs. The workflow template above includes `name:` on every job — copy it as-is.
- Always use the full URL `https://git.ivanch.me/ivanch/pipeline-actions/<action>@main` for `uses:` — Gitea cannot resolve the bare GitHub-style `ivanch/pipeline-actions/...` path. - Always use the full URL `https://git.ivanch.me/ivanch/pipeline-actions/<action>@main` for `uses:` — Gitea cannot resolve the bare GitHub-style `ivanch/pipeline-actions/...` path.
- Always use `runs-on: ubuntu-amd64` (homelab Gitea runner label). - Default to `runs-on: runner-slim-amd64` (or `runner-slim-arm64`) as the default runner label. If further development/build binaries are required (or an Ubuntu-based environment is needed), use `runner-full-amd64` (or `runner-full-arm64`).
- Always build `linux/amd64,linux/arm64` — the cluster has mixed arch (iris+vega=amd64, nebula+nexus=arm64). - Always build `linux/amd64,linux/arm64` — the cluster has mixed arch (iris+vega=amd64, nebula+nexus=arm64).
- Workflow files go in `.gitea/workflows/main.yaml` of the consuming project. - Workflow files go in `.gitea/workflows/main.yaml` of the consuming project.
- The consuming project must have a working `Dockerfile` at the repo root (or pass `build_dockerfile` input). - The consuming project must have a working `Dockerfile` at the repo root (or pass `build_dockerfile` input).

View File

@@ -12,7 +12,7 @@ Builds and pushes a multi-architecture Docker image using a remote Buildx builde
jobs: jobs:
build: build:
name: Build Image name: Build Image
runs-on: ubuntu-amd64 runs-on: runner-slim-amd64
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main - uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main
@@ -60,7 +60,7 @@ Validates a kubeconfig, installs kubectl, and applies Kubernetes manifest(s) tha
jobs: jobs:
deploy: deploy:
name: Apply Manifests (internal) name: Apply Manifests (internal)
runs-on: ubuntu-amd64 runs-on: runner-slim-amd64
needs: build needs: build
steps: steps:
- uses: https://git.ivanch.me/ivanch/pipeline-actions/kubectl-apply@main - uses: https://git.ivanch.me/ivanch/pipeline-actions/kubectl-apply@main
@@ -87,7 +87,7 @@ jobs:
jobs: jobs:
restart: restart:
name: Rollout Restart (internal) name: Rollout Restart (internal)
runs-on: ubuntu-amd64 runs-on: runner-slim-amd64
needs: apply needs: apply
steps: steps:
- uses: https://git.ivanch.me/ivanch/pipeline-actions/deploy-restart@main - uses: https://git.ivanch.me/ivanch/pipeline-actions/deploy-restart@main
@@ -109,7 +109,7 @@ SSH into a remote host and run `docker compose pull` + `docker compose up -d --f
jobs: jobs:
deploy: deploy:
name: SSH Deploy (internal) name: SSH Deploy (internal)
runs-on: ubuntu-amd64 runs-on: runner-slim-amd64
needs: build needs: build
steps: steps:
- uses: https://git.ivanch.me/ivanch/pipeline-actions/ssh-deploy@main - uses: https://git.ivanch.me/ivanch/pipeline-actions/ssh-deploy@main
@@ -141,6 +141,7 @@ jobs:
## Rules ## Rules
- Every job **must** have a `name:` field (e.g. `name: Build Image`, `name: Deploy (internal)`). Named jobs make the Gitea Actions UI and run logs readable — unnamed jobs show up as the raw job ID (`build`, `deploy`, …). The templates above all include `name:`. - Every job **must** have a `name:` field (e.g. `name: Build Image`, `name: Deploy (internal)`). Named jobs make the Gitea Actions UI and run logs readable — unnamed jobs show up as the raw job ID (`build`, `deploy`, …). The templates above all include `name:`.
- Default to `runs-on: runner-slim-amd64` (or `runner-slim-arm64`) as the default runner label. If further development/build binaries are required (or an Ubuntu-based environment is needed), use `runner-full-amd64` (or `runner-full-arm64`).
- Pin composite action refs to `@main` until version tags are created. - Pin composite action refs to `@main` until version tags are created.
Consumer repositories need these secrets configured in Gitea: Consumer repositories need these secrets configured in Gitea: