-
Notifications
You must be signed in to change notification settings - Fork 100
35 lines (35 loc) · 1.06 KB
/
build_pods.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: Build Pods
on:
repository_dispatch:
types:
- build
workflow_dispatch:
jobs:
build_pods:
if: github.repository_owner == 'ManageIQ'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'manageiq-operator/go.mod'
- name: Docker login
run: echo ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | docker login docker.io --password-stdin --username ${{ secrets.DOCKER_REGISTRY_USERNAME }}
- name: Build pods containers
run: bin/build -t latest -n -p
notify_builders:
needs: build_pods
if: github.repository_owner == 'ManageIQ'
runs-on: ubuntu-latest
steps:
- name: Notify manageiq on pods build
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.BUILD_TOKEN }}
repository: ManageIQ/manageiq
event-type: build
client-payload: |
{ "repository": "${{ github.repository }}",
"ref_name": "${{ github.ref_name }}",
"sha": "${{ github.sha }}" }