-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 925 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: Continuous integration
on:
push:
pull_request:
workflow_dispatch:
jobs:
yamllint:
name: Yaml lint
uses: x-real-ip/github-actions/.github/workflows/yamllint.yaml@main
build-and-push-image:
name: Build and Push Image
needs: [yamllint]
uses: x-real-ip/github-actions/.github/workflows/build-and-push.yaml@main
with:
publish: true
dispatch-update-manifest:
name: Repository Dispatch to Update Manifest
needs: [build-and-push-image]
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT }}
repository: x-real-ip/gitops
event-type: update-manifest
client-payload:
'{"ref": "${{ github.ref }}", "repository": "${{
github.repository}}", "registry": "ghcr.io", "sha": "${{ github.sha
}}"}'