From 0161fffd9b7872365e96ec1dd5b3cab0b45e64e6 Mon Sep 17 00:00:00 2001 From: Huy Mai Date: Thu, 8 Aug 2024 15:45:53 +0300 Subject: [PATCH] Move container build to GH runner Signed-off-by: Huy Mai --- .github/workflows/build-images-action.yml | 34 ++++++++++------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-images-action.yml b/.github/workflows/build-images-action.yml index 7602666..998fe92 100644 --- a/.github/workflows/build-images-action.yml +++ b/.github/workflows/build-images-action.yml @@ -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: "metal3.bot@gmail.com" - 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 }}