Skip to content

Commit

Permalink
Add tag triggering for container building wf
Browse files Browse the repository at this point in the history
Signed-off-by: Huy Mai <huy.mai@est.tech>
  • Loading branch information
mquhuy committed Jan 9, 2024
1 parent 42b44d7 commit aae2c75
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build-images-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: build-images-action
on:
push:
branches:
- 'main'
- 'release-*'

- 'main'
- 'release-*'
tags:
- 'v*'
permissions: {}

jobs:
Expand All @@ -17,16 +18,15 @@ jobs:

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"

0 comments on commit aae2c75

Please sign in to comment.