Comments (4)
sorry, meant to say currently only travis-ci is supported. Thanks!
from galaxy.
For GitHub Actions, it looks like @robertdebock maintains https://github.com/marketplace/actions/publish-ansible-role-to-galaxy — though as an alternative, you could add a workflow task like the following:
- name: Trigger a new import on Galaxy.
run: >-
ansible-galaxy role import
--api-key ${{ secrets.GALAXY_API_KEY }}
$(echo $GITHUB_REPOSITORY | cut -d/ -f1)
$(echo $GITHUB_REPOSITORY | cut -d/ -f2)
The annoying part of this (at least for me, since my roles are under my name and not an organization) is that I have to add a GALAXY_API_KEY
secret to each and every repository in my namespace. It'd still be nice if I could just curl https://galaxy.ansible.com/api/v1/notifications/
from the action and it wouldn't require the secret or even installation of Ansible to run the ansible-galaxy
command (or integrating a 3rd party Action, which I can't audit except for pinning at a certain commit—and even then the underlying Docker image version can't be pinned).
from galaxy.
So... this week Travis CI basically neutered itself as a reasonable way to maintain open source CI workflows, at least for anyone who maintains more than one or two bits of content.
I'm going to have to switch all my roles to GitHub Actions CI, and I'm looking for a way to notify Galaxy from there to import the role. Is this possible already? This issue is a bit old, and maybe the functionality already exists, but my Googling has been fruitless so far.
from galaxy.
I agree in the usefulness of https://galaxy.ansible.com/api/v1/notifications/
for having frictionless build status updates.
I believe what is needed here is - not integrations for a myriad of different CI tools – but simply #2530, which merely requests that the schema of required fields for the https://galaxy.ansible.com/api/v1/notifications/
POST API endpoint be documented somewhere.
Given that, developers can make integrate with various CI tools by transforming the build attributes into the appropriate JSON schema. In GitHub Actions in particular, this would be easy to add as an Action.
from galaxy.
Related Issues (20)
- Collection seems to be published (HTTP Code: 400, Message: Artifact already exists Code: invalid), but not accessible in the UI or via 'collection install' HOT 6
- nofusscomputing namespace HOT 3
- namespace: redhatci HOT 2
- namespace: Opsmill HOT 3
- namespace: blinklabs HOT 4
- Publishing collection with certain version returns a 500 error
- Unable to import roles to pokerops collection HOT 1
- namespace: nahsilabs HOT 1
- Galaxy NG: Role Import into organizational namespace fails with `ERROR! None (HTTP Code: 403, Message: Forbidden)` HOT 1
- Do not sort galaxy_tags on roles in galaxy.ansible.com/ui
- platforms api endpoint returns 404 not found HOT 2
- namespace: fluencelabs HOT 2
- Please add EMCL-Research-ITSecLab namespace HOT 1
- namespace: twiddlez HOT 3
- namespace: ateme HOT 1
- Request for an "entrust" galaxy namespace. HOT 1
- Unable to import roles anymore: namespace different from github organization HOT 3
- namespace: stewartfrancis HOT 2
- Cannot import role HOT 2
- namespace: sophos HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galaxy.