-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update release workflow #559
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
Conversation
- update `Cargo.toml` to [`strip`](https://doc.rust-lang.org/cargo/reference/profiles.html#strip) as part of the release profile. - remove explicit `strip` steps from the release workflow. - update step name to better reflect `git config` changes.
- remove the `v` prefix from the triggering tag (all previous tags lack this). - update tag-deriving steps to better reflect the expected tag pattern. - update tag-deriving steps to be consistent in how `GITHUB_REF` is parsed.
- update GitHub Actions conditions to use [`contains`](https://docs.github.com/en/actions/learn-github-actions/expressions#contains) to match _all_ related builds. - update shell conditions to accommodate the same.
@CMNatic :
👆🏻 I think this is true, but @CMNatic knows so much about our Docker setup so I'll defer :D And why can't it log into Docker via the CI? It's in the actions secrets :( it does not see those secrets? And thanks @PsypherPunk !!! |
@PsypherPunk waiting on @CMNatic to have a lil look then i'll merge this and try a release 🥳 |
@bee-san, come to think of it, I don't think builds triggered by pull-requests get access to secrets (to avoid external parties raising PRs to steal them, presumably): https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow |
Hey 👋🏻
Ahh good catch @PsypherPunk. Yes, I think this should also be updated to match :)
This is my understanding as well. I've double-checked the repo secrets for the dockerhub and they are correct. I think the PR will need to be merged for the runner to run. It's not super ideal, but it does make sense. A new commit will cause a publish to the If it doesn't, I have a PR ready that uses a newer version the Docker login runner, which uses a access token instead that we can test @bee-san |
Mind doing this in another PR? :) |
Apologies if this is excessive but following #427, there are a few things I noticed:
Cargo.toml
now supportsstrip
which I think should replace the explicitstrip
steps in the release workflow, unless there's any other reason they're not quite identical…?v
prefix. However, no existing tags/releases have that prefix; I've removed it and updated the workflow accordingly.docker.yml
has the same trigger—if the above holds true, should that be updated to match?linux
, notx86_64-linux
) so if future architectures are added, the workflow should accommodate them.Let me know if I've misread anything or any of the above isn't required/desired.