workflow to actions

This commit is contained in:
2026-01-18 10:49:21 +01:00
parent 2b16422f5d
commit 6400976d19
10 changed files with 373 additions and 432 deletions

View File

@@ -1,6 +1,6 @@
## Reusable Workflows
## Actions
This repo provides reusable Gitea Actions workflows that can be referenced with `uses:`.
This repo provides reusable Gitea Actions as composite actions that can be referenced with `uses:`.
### Bump Version
@@ -9,9 +9,13 @@ Example:
```yaml
jobs:
bump-version:
uses: tanztee/ci-cd/.github/workflows/bump-version.yaml@main
secrets:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: tanztee/ci-cd/.github/actions/bump-version@main
with:
gitea_token: ${{ secrets.GITEA_TOKEN }}
```
### Build and Push Docker Image
@@ -21,11 +25,16 @@ Example:
```yaml
jobs:
build-and-push:
uses: tanztee/ci-cd/.github/workflows/build-and-push.yml@main
secrets:
REGISTRY: ${{ secrets.REGISTRY }}
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: tanztee/ci-cd/.github/actions/build-and-push@main
with:
registry: ${{ secrets.REGISTRY }}
registry_username: ${{ secrets.REGISTRY_USERNAME }}
registry_password: ${{ secrets.REGISTRY_PASSWORD }}
```
### Deploy Image to Kubernetes
@@ -43,11 +52,12 @@ on:
jobs:
deploy:
uses: tanztee/ci-cd/.github/workflows/deploy-k8s.yml@main
with:
tag: ${{ inputs.tag }}
namespace: oumta-dev
secrets:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
REGISTRY: ${{ secrets.REGISTRY }}
runs-on: ubuntu-latest
steps:
- uses: tanztee/ci-cd/.github/actions/deploy-k8s@main
with:
tag: ${{ inputs.tag }}
namespace: oumta-dev
kubeconfig: ${{ secrets.KUBECONFIG }}
registry: ${{ secrets.REGISTRY }}
```