Skip to content

Add github action to trigger container images build #5

Add github action to trigger container images build

Add github action to trigger container images build #5

name: build-images-action
on:
pull_request:
permissions: {}
jobs:
build:
name: Build container images
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: build bmo image
uses: joshlk/jenkins-githubaction@master
with:
url: "https://jenkins.nordix.org/"
job_name: "metal3_baremetal-operator_container_image_building"
username: "[email protected]"
api_token: ${{ secrets.JENKINS_TOKEN }}
parameters: |
{
"BUILD_CONTAINER_IMAGE_NAME": "baremetal-operator",
"BUILD_CONTAINER_IMAGE_BRANCH": "main"
}
job_timeout: "1000"
- name: build keepalived image
uses: toptal/jenkins-job-trigger-action@137fff703dd260b52b53d3ba1960396415abc568 # 1.0.2
with:
jenkins_url: "https://jenkins.nordix.org/"
jenkins_user: "[email protected]"
jenkins_token: ${{ secrets.JENKINS_TOKEN }}
job_name: "metal3_keepalived_container_image_building"
job_params: |
{
"BUILD_CONTAINER_IMAGE_NAME": "keepalived",
"BUILD_CONTAINER_IMAGE_BRANCH": "${{ github.ref }}"
}
job_timeout: "1000"