-
Notifications
You must be signed in to change notification settings - Fork 76
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
Galaxy deploy collection #216
Conversation
190e00b
to
ec23d37
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.
I noted that this workflow is run at every merge into main.
but for the collection we don't want this.
The ansible-collection build the archive with the content as is and use the version metadata to generate the archive name.
This will break/fail on every commit in main that are not tags. (release_tag won't have the proper value on non tag event)
So we should probably change-the trigger or add-a-new workflow for release on tag only, if possible
36876d8
to
bbabdd4
Compare
For now I would keep it to check if deployment is ok like this and we can create another issue to improve it if you agree. |
I see @aalaesar, maybe this will happen but I expect it to work. I propose we do a couple of tests as it is. If we get problems every merge I will make a PR to check for new tag. My idea is to try to have as many releases as possible to identify and correct errors more easily also. |
For testing you can change the condition to trigger the action for every commit in this branch. |
bbabdd4
to
608cf0b
Compare
Signed-off-by: staticdev <staticdev-support@protonmail.com>
608cf0b
to
3966a0a
Compare
Fair enough, I just tried that.. current problem is that on the new repo there must be a secret set for Ansible Galaxy:
|
The secret is still here but it was named GALAXY_TOKEN when we first needed it. |
Co-authored-by: Marc Crebassa <aalaesar@gmail.com> Signed-off-by: staticdev <staticdev-support@proton.me>
@aalaesar the problem now it that the namespace is diverging on galaxy.yml from one on repo name. |
c066113
to
220f3bc
Compare
Signed-off-by: staticdev <staticdev-support@proton.me>
220f3bc
to
aa088dd
Compare
@aalaesar I added hardcoded the old namespace and name to test... Now I get:
There is an ongoing issue with that ansible/galaxy#1563 Workaround: use underscore instead. After that now I get:
After fixing that:
|
25b6df1
to
a4b9184
Compare
@aalaesar @wiktor2200 TL;DR it works. Now fixing the errors from ansible-lint, there are a few. |
95f48e9
to
7d6dc53
Compare
Signed-off-by: staticdev <staticdev-support@proton.me>
7d6dc53
to
db3ba23
Compare
Co-authored-by: wiktor2200 <wiktor2200@users.noreply.github.com> Signed-off-by: staticdev <staticdev-support@proton.me>
Hello there So if the namespace and name are now hard coded in the playbook command, we should set the version to 2.0.0 and merge it after #209, once the namespace has been created. |
Great work @staticdev! I've left one more small comment (plus confirmation that we won't leak galaxy token), but apart from that LGTM and can be merged. :) Regarding Galaxy collection, it's weird, maybe counter would be aggregated later, because when you click on |
12fb5c1
to
75bdfc2
Compare
@aalaesar LGTM? |
The tests have messed up a little bit the tags and the release (no pb it's fixable). |
Ah, Yeah I messed up. Not drafter fault, I did a couple of releases. I just did a clean up of the tags and releases but we will need to manually do the description to 2.0.0.. One time thing.. |
Hi @staticdev @aalaesar! |
Signed-off-by: staticdev <staticdev-support@proton.me>
75bdfc2
to
aa309a2
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.
LGTM
I see LGTM from @wiktor2200 also so doing it. |
Closes #186