ci: use composite actions pipeline
This commit is contained in:
parent
e33af5243c
commit
475cae4b4e
2 changed files with 19 additions and 19 deletions
|
|
@ -1,16 +1,28 @@
|
|||
# Full pipeline: checks -> build+push image -> bump tag in gitops repo.
|
||||
# The heavy lifting lives in nholtware/workflows; this file is all a new
|
||||
# app needs.
|
||||
# The heavy lifting lives in nholtware/workflows composite actions; ArgoCD
|
||||
# takes over from the gitops commit.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
uses: nholtware/workflows/.forgejo/workflows/node-checks.yaml@main
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: http://192.168.1.230:3000/nholtware/workflows/node-checks@main
|
||||
|
||||
deploy:
|
||||
needs: checks
|
||||
uses: nholtware/workflows/.forgejo/workflows/build-and-deploy.yaml@main
|
||||
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
|
||||
secrets: inherit
|
||||
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 }}
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
smoke-host:
|
||||
runs-on: host
|
||||
steps:
|
||||
- run: echo hello from host runner
|
||||
smoke-docker:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- run: echo hello from docker runner
|
||||
Loading…
Add table
Add a link
Reference in a new issue