Skip to content

build

build #940

Workflow file for this run

name: Build Pods
on:
repository_dispatch:
types:
- build
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
permissions:
contents: read
jobs:
build_pods:
if: github.repository_owner == 'ManageIQ'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
cache-dependency-path: manageiq-operator/go.sum
check-latest: true
go-version: stable
- name: Docker login
run: echo ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | docker login docker.io --password-stdin --username ${{ secrets.DOCKER_REGISTRY_USERNAME }}
- name: Build pods containers
env:
IBM_CLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}
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@v4
with:
token: "${{ secrets.BUILD_TOKEN }}"
repository: ManageIQ/manageiq
event-type: build
client-payload: |
{ "repository": "${{ github.repository }}",
"ref_name": "${{ github.ref_name }}",
"sha": "${{ github.sha }}" }