From 873adf66955d7a3dbcc172fbd8f2fe64ec61a40b Mon Sep 17 00:00:00 2001 From: Huy Mai Date: Thu, 2 Jan 2025 14:12:11 +0200 Subject: [PATCH] Add build container image as a job in release wf 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 --- .github/workflows/build-images-action.yml | 5 ----- .github/workflows/release.yaml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-images-action.yml b/.github/workflows/build-images-action.yml index 8bcc2f75..a7946ea1 100644 --- a/.github/workflows/build-images-action.yml +++ b/.github/workflows/build-images-action.yml @@ -10,11 +10,6 @@ on: - "release-*" tags: - "v*" - workflow_run: - workflows: - - "Create Release" - types: - - completed jobs: set_ref: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fe85a8ed..e1f71649 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }}