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

add push input to push-to-gar-docker action #139

Merged

Conversation

joeyorlando
Copy link
Contributor

No description provided.

@joeyorlando joeyorlando requested a review from a team as a code owner June 3, 2024 17:23
description: |
Whether to push the image to the registry.
required: false
default: "true"
Copy link
Member

Choose a reason for hiding this comment

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

will this work?

Suggested change
default: "true"
default: ${{ github.event_name == 'push' }}

this is a break of backwards compatibility otherwise

Copy link
Contributor Author

@joeyorlando joeyorlando Jun 4, 2024

Choose a reason for hiding this comment

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

tldr; yes. good point! 👍

I pointed this build to commit 9cc5c0d, it looks like this works (this was a push event, push without being specified defaulted to true).

On this build, a pull_request event, I specified push: true and it worked as expected

@joeyorlando joeyorlando requested a review from iainlane June 4, 2024 13:19
@mem
Copy link

mem commented Jun 4, 2024

Nice, I actually need this!

Copy link
Member

@iainlane iainlane left a comment

Choose a reason for hiding this comment

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

I think it's good, we just need #140 to get merged so you can rebase and then get a CI run

@iainlane
Copy link
Member

iainlane commented Jun 4, 2024

is merged now --- give this one a rebase and let's see

@joeyorlando
Copy link
Contributor Author

@iainlane I believe the rebase helped, it looks like the lint CI job finally ran, do you mind merging please? 🙏

@iainlane iainlane merged commit 7817819 into grafana:main Jun 5, 2024
3 checks passed
@joeyorlando joeyorlando deleted the jorlando/update-push-to-gar-docker-action branch June 5, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants