Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update the weekly build github action #290

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

nbalacha
Copy link
Contributor

@nbalacha nbalacha commented Nov 9, 2022

Updates the weekly build github action to call a second workflow. This will allow us to trigger a build for red-hat-storage/topolvm as part of the weekly build.

Signed-off-by: N Balachandran [email protected]

@nbalacha nbalacha requested a review from iamniting November 9, 2022 05:20
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 9, 2022
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
ref: ${{ github.event.inputs.branch }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this ref should go under the checkout not under setup-go

@@ -45,21 +45,40 @@ jobs:
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_LVMO_ROBOT_NAME_2 }}
password: ${{ secrets.QUAY_LVMO_ROBOT_TOKEN_2 }}
username: ${{ secrets.QUAY_LVMO_ROBOT_NAME }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me, I think we should use registry_namespace here instead of the secrets. Because if someone gives values other than lvmo we won't be able to push the images though login will succeed. I would like it to fail earlier in that case at login itself. Also we can move login a bit up in the steps before go cache stuff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

run: make docker-push IMG=${{env.IMG}}
workflow: manual-operator-build-push
repo: red-hat-storage/lvm-operator
inputs: '{ "branch": "main"}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
inputs: '{ "branch": "main"}'
inputs: '{ "branch": "main" }'

run: make docker-push IMG=${{env.IMG}}
workflow: manual-operator-build-push
repo: red-hat-storage/lvm-operator
inputs: '{ "branch": "main"}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or

Suggested change
inputs: '{ "branch": "main"}'
inputs: '{"branch": "main"}'

Updates the weekly build github action to call a second
workflow. This will allow us to trigger a build for
red-hat-storage/topolvm as part of the weekly build.

Signed-off-by: N Balachandran <[email protected]>
Copy link
Member

@iamniting iamniting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 9, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: iamniting, nbalacha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 434fe23 into openshift:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants