From 527ad350cf803d15d831cf60e2974ae2acd1a0c7 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sat, 9 Dec 2023 13:28:26 +0100 Subject: [PATCH] moved the package to ansible --- .gitignore | 2 +- CHANGELOG.rst | 2 +- Makefile | 3 +++ galaxy.yml | 2 +- upload.sh | 6 ++++++ 5 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 upload.sh diff --git a/.gitignore b/.gitignore index a58bc0a..f650438 100644 --- a/.gitignore +++ b/.gitignore @@ -162,4 +162,4 @@ cython_debug/ # ---> Ansible *.retry - +*.tar.gz diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c18ed46..037509b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -19,4 +19,4 @@ New Plugins Inventory ~~~~~~~~~ -- sebastian.netcup.scp - Returns Ansible inventory from netcup SCP +- ansible.netcup.scp - Returns Ansible inventory from netcup SCP diff --git a/Makefile b/Makefile index 214461e..3a3d4b8 100644 --- a/Makefile +++ b/Makefile @@ -10,3 +10,6 @@ docs: format release: changelog docs ansible-galaxy collection build + +upload: + ./upload.sh diff --git a/galaxy.yml b/galaxy.yml index d433243..5dfe5af 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,5 +1,5 @@ --- -namespace: sebastian +namespace: ansible name: netcup version: 0.1.0 readme: README.md diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..f2cafaa --- /dev/null +++ b/upload.sh @@ -0,0 +1,6 @@ +#!/bin/bash +user=$(yq -r .namespace galaxy.yml) +package=$(yq -r .name galaxy.yml) +version=$(yq -r .version galaxy.yml) +printf "Namespace: %s\nPackage: %s\nVersion: %s\nfile name: %s\n" $user $package $version "$user-$package-$version.tar.gz" +curl -u sebastian --upload-file "${user}-${package}-${version}.tar.gz" "https://gitea.sebastian-tobie.de/api/packages/${user}/generic/${package}/${version}/${user}-${package}-${version}.tar.gz"