Skip to content

Commit

Permalink
Add build container image as a job in release wf
Browse files Browse the repository at this point in the history
This adds build-container-image as a job in the release wf. After the
release note draft is created, the container image will be created.

Signed-off-by: Huy Mai <[email protected]>
  • Loading branch information
mquhuy committed Jan 2, 2025
1 parent c256e0c commit 873adf6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build-images-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ on:
- "release-*"
tags:
- "v*"
workflow_run:
workflows:
- "Create Release"
types:
- completed

jobs:
set_ref:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,17 @@ jobs:
files: out/*
body_path: ${{ env.RELEASE_TAG }}.md
tag_name: ${{ env.RELEASE_TAG }}

build_ipam:
needs: push_release_tags
name: Build IPAM container image
if: github.repository == 'metal3-io/ip-address-manager'
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
with:
image-name: "ip-address-manager"
pushImage: true
ref: ${{ needs.push_release_tags.outputs.release_tag }}
secrets:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 873adf6

Please sign in to comment.