Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Move container build to GH runner
Browse files Browse the repository at this point in the history
Signed-off-by: Huy Mai <[email protected]>
  • Loading branch information
mquhuy committed Aug 8, 2024
1 parent df0f859 commit 0161fff
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/build-images-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,18 @@ on:
push:
branches:
- 'main'
permissions: {}

permissions:
contents: read

jobs:
build:
name: Build container images
runs-on: ubuntu-latest
if: github.repository == 'metal3-io/ironic-client'
permissions:
contents: read
steps:
- name: build ironic-client 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_ironic-client_container_image_building"
job_params: |
{
"BUILD_CONTAINER_IMAGE_GIT_REFERENCE": "${{ github.ref }}"
}
job_timeout: "1000"
build_ironic_client:
name: build ironic-client image
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
with:
image-name: "ironic-client"
pushImage: true
secrets:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 0161fff

Please sign in to comment.