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
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:
@@ -18,8 +18,11 @@ env:
|
||||
|
||||
jobs:
|
||||
test-build-push:
|
||||
name: Build tiny multi-arch image
|
||||
runs-on: ubuntu-amd64
|
||||
name: Build tiny multi-arch image (${{ matrix.runner }})
|
||||
runs-on: ${{ matrix.runner }}
|
||||
strategy:
|
||||
matrix:
|
||||
runner: [runner-full-amd64, runner-full-arm64]
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -58,8 +61,11 @@ jobs:
|
||||
echo "self-test PASSED: multi-arch image built and pushed"
|
||||
|
||||
test-k8s:
|
||||
name: Test Kubernetes actions
|
||||
runs-on: ubuntu-amd64
|
||||
name: Test Kubernetes actions (${{ matrix.runner }})
|
||||
runs-on: ${{ matrix.runner }}
|
||||
strategy:
|
||||
matrix:
|
||||
runner: [runner-full-amd64, runner-full-arm64]
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -97,8 +103,11 @@ jobs:
|
||||
fi
|
||||
|
||||
test-ssh:
|
||||
name: Test SSH deploy action
|
||||
runs-on: ubuntu-amd64
|
||||
name: Test SSH deploy action (${{ matrix.runner }})
|
||||
runs-on: ${{ matrix.runner }}
|
||||
strategy:
|
||||
matrix:
|
||||
runner: [runner-full-amd64, runner-full-arm64]
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -80,7 +80,7 @@ env:
|
||||
jobs:
|
||||
build:
|
||||
name: Build Image
|
||||
runs-on: ubuntu-amd64
|
||||
runs-on: runner-slim-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
|
||||
deploy:
|
||||
name: Deploy (internal)
|
||||
runs-on: ubuntu-amd64
|
||||
runs-on: runner-slim-amd64
|
||||
needs: build
|
||||
steps:
|
||||
# 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.
|
||||
- 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 `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).
|
||||
- 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).
|
||||
|
||||
@@ -12,7 +12,7 @@ Builds and pushes a multi-architecture Docker image using a remote Buildx builde
|
||||
jobs:
|
||||
build:
|
||||
name: Build Image
|
||||
runs-on: ubuntu-amd64
|
||||
runs-on: runner-slim-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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:
|
||||
deploy:
|
||||
name: Apply Manifests (internal)
|
||||
runs-on: ubuntu-amd64
|
||||
runs-on: runner-slim-amd64
|
||||
needs: build
|
||||
steps:
|
||||
- uses: https://git.ivanch.me/ivanch/pipeline-actions/kubectl-apply@main
|
||||
@@ -87,7 +87,7 @@ jobs:
|
||||
jobs:
|
||||
restart:
|
||||
name: Rollout Restart (internal)
|
||||
runs-on: ubuntu-amd64
|
||||
runs-on: runner-slim-amd64
|
||||
needs: apply
|
||||
steps:
|
||||
- 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:
|
||||
deploy:
|
||||
name: SSH Deploy (internal)
|
||||
runs-on: ubuntu-amd64
|
||||
runs-on: runner-slim-amd64
|
||||
needs: build
|
||||
steps:
|
||||
- uses: https://git.ivanch.me/ivanch/pipeline-actions/ssh-deploy@main
|
||||
@@ -141,6 +141,7 @@ jobs:
|
||||
## 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:`.
|
||||
- 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.
|
||||
|
||||
Consumer repositories need these secrets configured in Gitea:
|
||||
|
||||
Reference in New Issue
Block a user