29 lines
1,004 B
YAML
29 lines
1,004 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: https://git.lab.holtlabs.xyz/nholtware/workflows/node-checks@v1
|
|
- uses: https://git.lab.holtlabs.xyz/nholtware/workflows/lint-checks@v1
|
|
|
|
deploy:
|
|
needs: checks
|
|
runs-on: host
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://git.lab.holtlabs.xyz/nholtware/workflows/build-push@v1
|
|
with:
|
|
app-name: ${{ github.event.repository.name }}
|
|
registry-user: ${{ secrets.REGISTRY_USER }}
|
|
registry-token: ${{ secrets.REGISTRY_TOKEN }}
|
|
- uses: https://git.lab.holtlabs.xyz/nholtware/workflows/gitops-bump@v1
|
|
with:
|
|
app-name: ${{ github.event.repository.name }}
|
|
gitops-token: ${{ secrets.GITOPS_TOKEN }}
|