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 }}