From 0c10fe877155f08735970f358f93ec78f4c15e68 Mon Sep 17 00:00:00 2001 From: Tuomo Tanskanen Date: Mon, 4 Mar 2024 09:25:53 +0200 Subject: [PATCH] fix build image action for release-1.6 Fix build image action for release-1.6. Signed-off-by: Tuomo Tanskanen --- .github/workflows/build-images-action.yml | 38 +++++++++++++---------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-images-action.yml b/.github/workflows/build-images-action.yml index e3b86a6e..1aeeb0af 100644 --- a/.github/workflows/build-images-action.yml +++ b/.github/workflows/build-images-action.yml @@ -1,28 +1,34 @@ name: build-images-action + on: push: branches: - - 'main' - - 'release-*' + - 'main' + - 'release-*' + tags: + - 'v*' + permissions: {} + jobs: build: name: Build container images runs-on: ubuntu-latest - if: github.repository == 'metal3-io/ip-address-manager' + permissions: contents: read + + if: github.repository == 'metal3-io/ip-address-manager' steps: - - name: build ipam 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_ip-address-manager_container_image_building" - job_params: | - { - "BUILD_CONTAINER_IMAGE_NAME": "ip-address-manager", - "BUILD_CONTAINER_IMAGE_BRANCH": "${{ github.ref }}" - } - job_timeout: "1000" + - name: build ipam 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_ip-address-manager_container_image_building" + job_params: | + { + "BUILD_CONTAINER_IMAGE_GIT_REFERENCE": "${{ github.ref }}" + } + job_timeout: "1000"