Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Publish new collection versions from git tags automatically #43

Closed
geerlingguy opened this issue Feb 28, 2020 · 5 comments · Fixed by #194
Closed

Publish new collection versions from git tags automatically #43

geerlingguy opened this issue Feb 28, 2020 · 5 comments · Fixed by #194
Assignees

Comments

@geerlingguy
Copy link
Collaborator

SUMMARY

Right now the Kubernetes collection release process is fully manual, and therefore prone to error. We've already hit our first minor bump in #29 — having a fully automated process should make the release process more foolproof, and also lighten the load on collection maintainers.

Using a process similar to the one outlined in this post (Automatically building and publishing Ansible Galaxy Collections), we can set up a GitHub Actions workflow called build.yml that would run only on tags, and it would build and publish the collection at the same version as the new tag.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

CI

ADDITIONAL INFORMATION

There are a couple things that I'm slightly worried about, with regard to permissions and an Ansible Galaxy token:

Until those issues are resolved, the only way to do automated publishing of new release tags would be to have one of the people with access to the Galaxy community namespace/org add their galaxy token to GitHub Actions as a secret... and doing that would expose that user to potential impersonation attacks on Galaxy.

@geerlingguy
Copy link
Collaborator Author

(Also posting related issue geerlingguy/ansible-collection-k8s#6)

@geerlingguy
Copy link
Collaborator Author

Related project that has a GitHub Action: artis3n/ansible_galaxy_collection#49

@geerlingguy
Copy link
Collaborator Author

geerlingguy commented May 4, 2020

From @gundalow:

For information, and community. and ansible. collections (which are hosted in https://github.com/ansible-collections/) will use Zuul to publish to Galaxy.

See: ansible-collections/overview#56 (comment)

@geerlingguy
Copy link
Collaborator Author

Here are the instructions—two PRs needed: https://github.com/ansible/project-config/#on-board-new-repo-into-zuul

@geerlingguy
Copy link
Collaborator Author

Created the two required PRs:

  1. Add community.kubernetes to tenants.yaml ansible/project-config#591
  2. Add community.kubernetes to projects.yaml ansible/project-config#592

Waiting on upstream, and once they're merged and I can confirm Zuul's working, I'll convert the PR on this repo to 'Open' instead of 'Draft'.

geerlingguy added a commit that referenced this issue Aug 25, 2020
Issue #43: Update README to reflect new Zuul automated tag build and push.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants