feat: composite actions + runner base image
Actions: checkout, setup-go, setup-node, setup-aws Runner image: Go 1.26 + Node 22 + AWS CLI + Docker (docker:29-dind)
This commit is contained in:
@@ -1,3 +1,41 @@
|
||||
# ci
|
||||
# tinqs/ci
|
||||
|
||||
Tinqs CI - composite actions and runner base image
|
||||
Tinqs CI toolchain — composite Gitea Actions and runner base image.
|
||||
|
||||
## Actions
|
||||
|
||||
| Action | Description | Replaces |
|
||||
|--------|-------------|----------|
|
||||
| `tinqs/ci/checkout` | Clone a Gitea repo | `actions/checkout` |
|
||||
| `tinqs/ci/setup-go` | Install Go | `actions/setup-go` |
|
||||
| `tinqs/ci/setup-node` | Install Node.js + pnpm | `actions/setup-node` |
|
||||
| `tinqs/ci/setup-aws` | Install AWS CLI + ECR login | — |
|
||||
|
||||
### Usage
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: tinqs/ci/checkout@v1
|
||||
|
||||
- uses: tinqs/ci/setup-go@v1
|
||||
with:
|
||||
go-version: '1.26.2'
|
||||
|
||||
- uses: tinqs/ci/setup-node@v1
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- uses: tinqs/ci/setup-aws@v1
|
||||
with:
|
||||
ecr-login: 'true'
|
||||
ecr-repo: '149751500842.dkr.ecr.eu-west-1.amazonaws.com/tinqs-git'
|
||||
```
|
||||
|
||||
## Runner Base Image
|
||||
|
||||
`runner-image/` contains the Dockerfile for the CI runner container. Pre-installs Go, Node.js, AWS CLI, Docker, git, and ssh — no per-job install overhead.
|
||||
|
||||
```bash
|
||||
cd runner-image
|
||||
./build-push.sh v1
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user