28 lines
869 B
YAML
28 lines
869 B
YAML
# Full pipeline: checks -> build+push image -> bump tag in gitops repo.
|
|
# The heavy lifting lives in nholtware/workflows composite actions; ArgoCD
|
|
# takes over from the gitops commit.
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: http://192.168.1.230:3000/nholtware/workflows/node-checks@main
|
|
|
|
deploy:
|
|
needs: checks
|
|
runs-on: host
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: http://192.168.1.230:3000/nholtware/workflows/build-push@main
|
|
with:
|
|
app-name: demo-app
|
|
registry-user: ${{ secrets.REGISTRY_USER }}
|
|
registry-token: ${{ secrets.REGISTRY_TOKEN }}
|
|
- uses: http://192.168.1.230:3000/nholtware/workflows/gitops-bump@main
|
|
with:
|
|
app-name: demo-app
|
|
gitops-token: ${{ secrets.GITOPS_TOKEN }}
|