adding docker-build job
Test Actions (self-test) / AMD64 - Build tiny multi-arch image (runner-slim-amd64) (push) Successful in 17s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-full-amd64) (push) Successful in 27s
Test Actions (self-test) / AMD64 - Build tiny multi-arch image (runner-full-amd64) (push) Successful in 28s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-slim-amd64) (push) Successful in 12s
Test Actions (self-test) / Test SSH deploy action (runner-full-amd64) (push) Successful in 35s
Test Actions (self-test) / Test SSH deploy action (runner-slim-amd64) (push) Successful in 7s
Test Actions (self-test) / Test Kubernetes actions (runner-full-amd64) (push) Successful in 1m7s
Test Actions (self-test) / Test Kubernetes actions (runner-slim-amd64) (push) Successful in 1m8s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-full-arm64) (push) Successful in 5m30s
Test Actions (self-test) / ARM64 - Build tiny multi-arch image (runner-full-arm64) (push) Successful in 5m35s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-slim-arm64) (push) Successful in 5m39s
Test Actions (self-test) / ARM64 - Build tiny multi-arch image (runner-slim-arm64) (push) Successful in 5m43s
Test Actions (self-test) / Test SSH deploy action (runner-slim-arm64) (push) Successful in 1m38s
Test Actions (self-test) / Test Kubernetes actions (runner-full-arm64) (push) Successful in 2m14s
Test Actions (self-test) / Test Kubernetes actions (runner-slim-arm64) (push) Successful in 2m29s
Test Actions (self-test) / Test SSH deploy action (runner-full-arm64) (push) Successful in 4m5s
Test Actions (self-test) / AMD64 - Build tiny multi-arch image (runner-slim-amd64) (push) Successful in 17s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-full-amd64) (push) Successful in 27s
Test Actions (self-test) / AMD64 - Build tiny multi-arch image (runner-full-amd64) (push) Successful in 28s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-slim-amd64) (push) Successful in 12s
Test Actions (self-test) / Test SSH deploy action (runner-full-amd64) (push) Successful in 35s
Test Actions (self-test) / Test SSH deploy action (runner-slim-amd64) (push) Successful in 7s
Test Actions (self-test) / Test Kubernetes actions (runner-full-amd64) (push) Successful in 1m7s
Test Actions (self-test) / Test Kubernetes actions (runner-slim-amd64) (push) Successful in 1m8s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-full-arm64) (push) Successful in 5m30s
Test Actions (self-test) / ARM64 - Build tiny multi-arch image (runner-full-arm64) (push) Successful in 5m35s
Test Actions (self-test) / Build-only tiny multi-arch image (runner-slim-arm64) (push) Successful in 5m39s
Test Actions (self-test) / ARM64 - Build tiny multi-arch image (runner-slim-arm64) (push) Successful in 5m43s
Test Actions (self-test) / Test SSH deploy action (runner-slim-arm64) (push) Successful in 1m38s
Test Actions (self-test) / Test Kubernetes actions (runner-full-arm64) (push) Successful in 2m14s
Test Actions (self-test) / Test Kubernetes actions (runner-slim-arm64) (push) Successful in 2m29s
Test Actions (self-test) / Test SSH deploy action (runner-full-arm64) (push) Successful in 4m5s
This commit is contained in:
1 parent
24a644c338
commit
d023002a62
4 files changed
+296
-1
No files matched your search
@@ -49,6 +49,47 @@ jobs:
|
||||
|
||||
---
|
||||
|
||||
### `docker-build`
|
||||
|
||||
Builds a multi-architecture Docker image on the same remote Buildx builder as `build-and-push`, but **does not push** it. Useful for validating a Dockerfile (e.g. on PRs / non-main branches).
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
build:
|
||||
name: Build Image (no push)
|
||||
runs-on: runner-slim-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://git.ivanch.me/ivanch/pipeline-actions/docker-build@main
|
||||
with:
|
||||
ssh_key: ${{ secrets.SSH_KEY_DOCKERBUILD }}
|
||||
# optional:
|
||||
# registry_password: ${{ secrets.REGISTRY_PASSWORD }} # only for private base images
|
||||
# image: git.ivanch.me/ivanch/my-app
|
||||
# image_tag: latest
|
||||
# platforms: linux/amd64,linux/arm64
|
||||
# build_context: .
|
||||
# build_dockerfile: Dockerfile
|
||||
# build_args: ""
|
||||
```
|
||||
|
||||
| Input | Required | Default | Description |
|
||||
|---|---|---|---|
|
||||
| `ssh_key` | ✅ | — | SSH private key for the remote builder (use secrets) |
|
||||
| `registry_password` | ❌ | _(empty)_ | When set, logs into the registry first (needed only for private base images) |
|
||||
| `registry_host` | ❌ | `git.ivanch.me` | Container registry hostname |
|
||||
| `registry_username` | ❌ | `ivanch` | Registry username |
|
||||
| `image` | ❌ | _(empty)_ | Image reference without tag; only used to tag the build result |
|
||||
| `image_tag` | ❌ | `latest` | Tag(s) applied when `image` is set (comma-separated) |
|
||||
| `platforms` | ❌ | `linux/amd64,linux/arm64` | Target build platforms |
|
||||
| `build_context` | ❌ | `.` | Docker build context path |
|
||||
| `build_dockerfile` | ❌ | `Dockerfile` | Dockerfile path relative to context |
|
||||
| `build_args` | ❌ | _(empty)_ | Build arguments, one `KEY=VALUE` per line |
|
||||
| `docker_host` | ❌ | `docker-build.haven` | Remote builder hostname |
|
||||
| `docker_user` | ❌ | `root` | SSH user for remote builder |
|
||||
|
||||
---
|
||||
|
||||
### `deploy-restart`
|
||||
|
||||
Validates a kubeconfig, installs kubectl, and performs a `rollout restart` of a Kubernetes Deployment.
|
||||
@@ -158,7 +199,7 @@ Consumer repositories need these secrets configured in Gitea:
|
||||
| Secret | Used by | Purpose |
|
||||
|---|---|---|
|
||||
| `REGISTRY_PASSWORD` | `build-and-push` | Container registry password/token |
|
||||
| `SSH_KEY_DOCKERBUILD` | `build-and-push` | SSH private key for `docker-build.haven` |
|
||||
| `SSH_KEY_DOCKERBUILD` | `build-and-push, docker-build` | SSH private key for `docker-build.haven` |
|
||||
| `KUBE_CONFIG` | `deploy-restart, kubectl-apply` | Full kubeconfig YAML for cluster access |
|
||||
| `DEPLOY_HOST` | `ssh-deploy` | Remote server hostname or IP |
|
||||
| `DEPLOY_USERNAME` | `ssh-deploy` | SSH username for the remote server |
|
||||
|
||||
Reference in new issue
Block a user