Skip to content

Commit

Permalink
fix tags and publish function
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Apr 25, 2023
1 parent 78e3bfd commit 16bfe4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tags:
- nokia
- srlinux
- jsonrpc
- rest-api
- httpapi
- network

# Collections that this collection requires to be installed for it to be usable. The key of the dict is the
Expand Down
5 changes: 4 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,16 @@ function sanity-test {
# -----------------------------------------------------------------------------

function build-collection {
# cleanup
rm -f nokia-srlinux-*.tar.gz
# build the collection
ansible-galaxy collection build --force
}

function publish-collection {
# build the collection
ansible-galaxy collection publish --token $(cat apikey)
build-collection
ansible-galaxy collection publish -v --token $(cat apikey) $(ls -1 nokia-srlinux-*.tar.gz)
}

# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 16bfe4b

Please sign in to comment.