29 lines
742 B
Markdown
29 lines
742 B
Markdown
|
|
## Usage
|
|
|
|
In your project's `.forgejo/workflows/build.yml`:
|
|
|
|
```yaml
|
|
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
docker-build:
|
|
uses: vodyanoy/ci-workflows/.forgejo/workflows/docker-build.yml@master
|
|
with:
|
|
image_name: vodyanoy/your-project # required: org/repo as it appears in the registry
|
|
secrets:
|
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
|
```
|
|
|
|
### Available workflows
|
|
|
|
| Workflow | Trigger | Inputs | Secrets |
|
|
|---|---|---|---|
|
|
| `docker-build.yml` | `workflow_call` | `image_name` (required), `context` (default `.`), `dockerfile` (default `./Dockerfile`) | `REGISTRY_USERNAME`, `REGISTRY_TOKEN` |
|