Skip to content

Commit c20503f

Browse files
committed
Stop operator image build from being triggered automatically
The release process for the operator may require us to decouple the bundle build+push and image build+push. This commit makes it so that we will manually have to trigger the image build github action. Signed-off-by: Anish Asthana <anishasthana1@gmail.com>
1 parent f7d6e38 commit c20503f

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/operator-image.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ name: Operator Image
44

55
on:
66
workflow_dispatch:
7-
push:
8-
tags:
9-
- "*"
7+
inputs:
8+
tag:
9+
description: 'Tag to be used for operator image'
10+
required: true
11+
default: 'unstable'
1012

1113
jobs:
1214
push:
@@ -22,12 +24,6 @@ jobs:
2224
curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH}
2325
chmod +x operator-sdk_${OS}_${ARCH} && sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk
2426
25-
26-
- name: Grab New Version Tag
27-
id: tag_name
28-
run: |
29-
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
30-
3127
- name: Login to Quay.io
3228
uses: redhat-actions/podman-login@v1
3329
with:
@@ -49,11 +45,11 @@ jobs:
4945
make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
5046
podman tag quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG} quay.io/project-codeflare/codeflare-operator:latest
5147
env:
52-
SOURCE_TAG: ${{ steps.tag_name.outputs.SOURCE_TAG }}
48+
SOURCE_TAG: ${{ github.event.inputs.tags }}
5349

5450
- name: Image Push
5551
run: |
5652
make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
5753
make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:latest
5854
env:
59-
SOURCE_TAG: ${{ steps.tag_name.outputs.SOURCE_TAG }}
55+
SOURCE_TAG: ${{ github.event.inputs.tags }}

0 commit comments

Comments
 (0)