Skip to content

Conversation

@mheffner
Copy link
Contributor

Updates the triggers for Github workflows:

Run CI on Pull Requests (opened, reopened, synchronized)

This still requires owners to approve running actions for third-party PRs.

Run release workflows on the tag push, not release action.

While the docs state that the $github.ref_name should match the tag associated with the release, I noticed on the firelens project a couple of instances where that was not true. This broke the docker metadata tagging, meaning we didn't update the latest image tag. There appear to be other reports of this too and they suggest switching to a different $github variable for the tag name. However, I'm not sure if that fixes the Docker metadata action.

We reference the release entity in the release workflow, so there could still be an issue if a tag was created, but not a release. However, I think that would be rare and it looks like it would hard fail the action instead of silently not pushing the tagged Docker image. Possibly future work to dig into this and switch to the github release variable, but pushing that for future work.

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.

2 participants