-
Notifications
You must be signed in to change notification settings - Fork 4
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
ci: fix release step by separating release to AWS bucket. #1834
Conversation
8306b25
to
972232a
Compare
@michaljurecko @hosekpeter I could not reach the success of |
(I think you will manage without me, if you have a specific question, I will answer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. Separating the release to separate file should not have an effect on its own, right? What did you change in the configuration that actually fixed it?
.github/workflows/release-cli.yml
Outdated
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing spaces. I think we have very bad convention on how to write CI pipeline, each file looks different. I will though about some yaml
linter that enforces us to write it correctly, otherwise each PR will look like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1853 Added draft PR which sets the yaml linter. I would resolve this for now and adjust all yaml code so it is correctly written. (Maintanance task)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't particularly feel like we need a linter for that. Just set up your ide to respect .editorconfig
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the trailing whitepaces please? That's a problem of your editor mainly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean add trailing whitespaces? Are you sure? 😅 When I have opened editor and being on that line no space is there. I think the issue lays in git diff. It shows wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked locally. The diff is correct, you did add trailing whitespaces there. Force-pushing a fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pulled it and see no changes. Weird
The step of |
It's interesting that if it's separated it solves the problem. we have some slack 🧵 where i can learn more about it. @Matovidlo |
6dfefff
to
5017389
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering one of the commits is names "WIP: test CI" I'm guessing it's not complete yet? Or maybe you just need to fix the commit message?
5017389
to
1039990
Compare
a703349
to
e87a07f
Compare
.github/workflows/release-cli.yml
Outdated
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the trailing whitepaces please? That's a problem of your editor mainly.
e87a07f
to
28bfbf8
Compare
…bucket. 1. Calling `aws-actions/configure-aws-credentials` with ` in combination with `./.github/actions/go-setup` does not work. Post workflow is corrupted due to `missing AWS region` 2. Release step now does not have `publisher` in goreleaser. The release script is called in separate CI step. 3. Release step creates new artefacts that will be published. 3. This separate CI step has `aws-actions.configure-aws-credentials` and cause no problems. This step dowloads published release artefacts and publish it to both s3 and github release.
28bfbf8
to
c77d2b2
Compare
Jira: PSGO-668
Changes:
post
save workflow.