RelEng: ansible collections - ansible/community GitHub Wiki

Setup

  • What credentials do you need?
    • Commit to the collection repo?
      • ask who?
    • A token to upload to galaxy?
      • who do we ask to be authorized?
      • Link to where to get the token?
      • What file do we drop the token into?

Procedure

# Fresh checkout so that no unnecessary artifacts are included:
git clone [email protected]:ansible-collections/$COLLECTION_NAME
# update version string in galaxy.yml
vim galaxy.yml
# Build the tarball
ansible-galaxy collection build
time ansible-galaxy collection publish community-NAME-VERSION.tar.gz

If you configure Zuul for your project, it can do this based on tagging events:

https://github.com/ansible/zuul-config#on-board-new-repo-into-zuul