Skip to content

Commit

Permalink
Merge pull request #53 from Nordix/tuomo/add-tag-support-for-image-bu…
Browse files Browse the repository at this point in the history
…ilding

add tags as triggers for image builds
  • Loading branch information
metal3-io-bot authored May 15, 2024
2 parents 207f0e1 + 85f3544 commit b412cdf
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/build-images-action.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
name: build-images-action

on:
push:
branches:
- 'main'
- 'main'
tags:
- 'v*'

permissions: {}
jobs:
build:
name: Build container images
runs-on: ubuntu-latest
if: github.repository == 'metal3-io/ironic-ipa-downloader'

permissions:
contents: read

if: github.repository == 'metal3-io/ironic-ipa-downloader'
steps:
- name: build ipa downloader 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-ipa-downloader_container_image_building"
job_params: |
{
"BUILD_CONTAINER_IMAGE_GIT_REFERENCE": "${{ github.ref }}"
}
job_timeout: "1000"
- name: build ipa downloader 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-ipa-downloader_container_image_building"
job_params: |
{
"BUILD_CONTAINER_IMAGE_GIT_REFERENCE": "${{ github.ref }}"
}
job_timeout: "1000"

0 comments on commit b412cdf

Please sign in to comment.