Skip to content

Commit

Permalink
Make container build only run for metal3.io repo
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 Aug 9, 2024
1 parent 00ee56f commit bc4ecc7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-images-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ permissions:
contents: read

on:
push:
branches:
- 'main'
- 'release-*'
tags:
- 'v*'
pull_request
# push:
# branches:
# - 'main'
# - 'release-*'
# tags:
# - 'v*'

jobs:
build_bmo:
name: Build BMO container image
if: github.repository == "metal3-io/baremetal-operator"
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
with:
image-name: "baremetal-operator"
Expand All @@ -24,6 +26,7 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
build_keepalived:
name: Build keepalived container image
if: github.repository == "metal3-io/baremetal-operator"
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
with:
image-name: "keepalived"
Expand Down

0 comments on commit bc4ecc7

Please sign in to comment.