From 30057964899cc85d4461933f76aad03f2eb5d4e2 Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 18:34:18 +0200 Subject: [PATCH 01/21] add lint --- .github/workflows/lint.yml | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..8c672d8 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,51 @@ +--- +name: Ansible Lint # feel free to pick your own name + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + # Important: This sets up your GITHUB_WORKSPACE environment variable + - uses: actions/checkout@v2 + + - name: Lint Ansible Playbook + # replace "master" with any valid ref + uses: ansible/ansible-lint-action@151b9a2 + with: + # [required] + # Paths to ansible files (i.e., playbooks, tasks, handlers etc..) + # or valid Ansible directories according to the Ansible role + # directory structure. + # If you want to lint multiple ansible files, use the following syntax + # targets: | + # playbook_1.yml + # playbook_2.yml + targets: "./" + # [optional] + # Arguments to be passed to the ansible-lint + + # Options: + # -q quieter, although not silent output + # -p parseable output in the format of pep8 + # --parseable-severity parseable output including severity of rule + # -r RULESDIR specify one or more rules directories using one or + # more -r arguments. Any -r flags override the default + # rules in ansiblelint/rules, unless -R is also used. + # -R Use default rules in ansiblelint/rules in addition to + # any extra + # rules directories specified with -r. There is no need + # to specify this if no -r flags are used + # -t TAGS only check rules whose id/tags match these values + # -x SKIP_LIST only check rules whose id/tags do not match these + # values + # --nocolor disable colored output + # --exclude=EXCLUDE_PATHS + # path to directories or files to skip. This option is + # repeatable. + # -c C Specify configuration file to use. Defaults to ".ansible-lint" + args: "-q" +... \ No newline at end of file From 26c3975d580f7e9b04db8411659171ec6d9c2361 Mon Sep 17 00:00:00 2001 From: Pablo Panos Date: Mon, 20 Jun 2022 18:39:57 +0200 Subject: [PATCH 02/21] Update lint.yml --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8c672d8..9835775 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - name: Lint Ansible Playbook # replace "master" with any valid ref - uses: ansible/ansible-lint-action@151b9a2 + uses: ansible/ansible-lint-action@main with: # [required] # Paths to ansible files (i.e., playbooks, tasks, handlers etc..) @@ -48,4 +48,4 @@ jobs: # repeatable. # -c C Specify configuration file to use. Defaults to ".ansible-lint" args: "-q" -... \ No newline at end of file +... From e0050b1a1c082fda0f704c9f656d118ffbeebcb5 Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 19:10:17 +0200 Subject: [PATCH 03/21] add releasing --- .github/workflows/lint.yml | 76 +++++++++++++++++++++----------------- build_collection.sh | 2 +- galaxy.yml | 2 +- 3 files changed, 44 insertions(+), 36 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8c672d8..03215b9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,40 +12,48 @@ jobs: # Important: This sets up your GITHUB_WORKSPACE environment variable - uses: actions/checkout@v2 - - name: Lint Ansible Playbook - # replace "master" with any valid ref - uses: ansible/ansible-lint-action@151b9a2 + - name: building collection + run: | + build_collecion.sh + - name: relase new version + uses: softprops/action-gh-release@v1 with: - # [required] - # Paths to ansible files (i.e., playbooks, tasks, handlers etc..) - # or valid Ansible directories according to the Ansible role - # directory structure. - # If you want to lint multiple ansible files, use the following syntax - # targets: | - # playbook_1.yml - # playbook_2.yml - targets: "./" - # [optional] - # Arguments to be passed to the ansible-lint + files: ./releases/*.tar.gz - # Options: - # -q quieter, although not silent output - # -p parseable output in the format of pep8 - # --parseable-severity parseable output including severity of rule - # -r RULESDIR specify one or more rules directories using one or - # more -r arguments. Any -r flags override the default - # rules in ansiblelint/rules, unless -R is also used. - # -R Use default rules in ansiblelint/rules in addition to - # any extra - # rules directories specified with -r. There is no need - # to specify this if no -r flags are used - # -t TAGS only check rules whose id/tags match these values - # -x SKIP_LIST only check rules whose id/tags do not match these - # values - # --nocolor disable colored output - # --exclude=EXCLUDE_PATHS - # path to directories or files to skip. This option is - # repeatable. - # -c C Specify configuration file to use. Defaults to ".ansible-lint" - args: "-q" + # - name: Lint Ansible Playbook + # # replace "master" with any valid ref + # uses: ansible/ansible-lint-action@151b9a2 + # with: + # # [required] + # # Paths to ansible files (i.e., playbooks, tasks, handlers etc..) + # # or valid Ansible directories according to the Ansible role + # # directory structure. + # # If you want to lint multiple ansible files, use the following syntax + # # targets: | + # # playbook_1.yml + # # playbook_2.yml + # targets: "./" + # # [optional] + # # Arguments to be passed to the ansible-lint + + # # Options: + # # -q quieter, although not silent output + # # -p parseable output in the format of pep8 + # # --parseable-severity parseable output including severity of rule + # # -r RULESDIR specify one or more rules directories using one or + # # more -r arguments. Any -r flags override the default + # # rules in ansiblelint/rules, unless -R is also used. + # # -R Use default rules in ansiblelint/rules in addition to + # # any extra + # # rules directories specified with -r. There is no need + # # to specify this if no -r flags are used + # # -t TAGS only check rules whose id/tags match these values + # # -x SKIP_LIST only check rules whose id/tags do not match these + # # values + # # --nocolor disable colored output + # # --exclude=EXCLUDE_PATHS + # # path to directories or files to skip. This option is + # # repeatable. + # # -c C Specify configuration file to use. Defaults to ".ansible-lint" + # args: "-q" ... \ No newline at end of file diff --git a/build_collection.sh b/build_collection.sh index e276eb1..0c4304f 100755 --- a/build_collection.sh +++ b/build_collection.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -ansible-galaxy collection build +ansible-galaxy collection build --output-path ./releases \ No newline at end of file diff --git a/galaxy.yml b/galaxy.yml index 1208e8e..0b1d098 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: redhat_cop name: controller_casc # The version of the collection. Must be compatible with semantic versioning -version: 0.0.149 +version: 0.0.150 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md From 57d4c5acb5e0eeda42e7273614c6098746a4aa93 Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 19:19:54 +0200 Subject: [PATCH 04/21] fix merge --- .github/workflows/lint.yml | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4a97345..a21b87c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,21 +12,15 @@ jobs: # Important: This sets up your GITHUB_WORKSPACE environment variable - uses: actions/checkout@v2 -<<<<<<< HEAD - name: building collection run: | build_collecion.sh - name: relase new version uses: softprops/action-gh-release@v1 -======= - - name: Lint Ansible Playbook - # replace "master" with any valid ref - uses: ansible/ansible-lint-action@main ->>>>>>> 26c3975d580f7e9b04db8411659171ec6d9c2361 with: files: ./releases/*.tar.gz -<<<<<<< HEAD + # - name: Lint Ansible Playbook # # replace "master" with any valid ref # uses: ansible/ansible-lint-action@151b9a2 @@ -64,26 +58,3 @@ jobs: # # -c C Specify configuration file to use. Defaults to ".ansible-lint" # args: "-q" ... -======= - # Options: - # -q quieter, although not silent output - # -p parseable output in the format of pep8 - # --parseable-severity parseable output including severity of rule - # -r RULESDIR specify one or more rules directories using one or - # more -r arguments. Any -r flags override the default - # rules in ansiblelint/rules, unless -R is also used. - # -R Use default rules in ansiblelint/rules in addition to - # any extra - # rules directories specified with -r. There is no need - # to specify this if no -r flags are used - # -t TAGS only check rules whose id/tags match these values - # -x SKIP_LIST only check rules whose id/tags do not match these - # values - # --nocolor disable colored output - # --exclude=EXCLUDE_PATHS - # path to directories or files to skip. This option is - # repeatable. - # -c C Specify configuration file to use. Defaults to ".ansible-lint" - args: "-q" -... ->>>>>>> 26c3975d580f7e9b04db8411659171ec6d9c2361 From 0667ec5bf28c04f804c4f5c37a3834cc4f7fea2b Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 19:22:17 +0200 Subject: [PATCH 05/21] fix merge --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a21b87c..b276903 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - name: building collection run: | - build_collecion.sh + ./build_collecion.sh - name: relase new version uses: softprops/action-gh-release@v1 with: From 47ec549e4f6d5f441826933181e1a1792b70548e Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 19:27:15 +0200 Subject: [PATCH 06/21] on actions branch --- .github/workflows/lint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b276903..3607cb5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,10 @@ --- name: Ansible Lint # feel free to pick your own name -on: [pull_request] +on: + pull_request: + branches: + - actions jobs: build: From 002a264d5cd1e4991fc1ff0d6c7f3e831ec540c6 Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 19:29:21 +0200 Subject: [PATCH 07/21] on actions branch --- .github/workflows/lint.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3607cb5..85821d0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,7 +23,6 @@ jobs: with: files: ./releases/*.tar.gz - # - name: Lint Ansible Playbook # # replace "master" with any valid ref # uses: ansible/ansible-lint-action@151b9a2 From 6724f9c1c892d5d10ac98ffa6bcbb6c81aaf6bca Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 19:36:00 +0200 Subject: [PATCH 08/21] on actions branch --- .github/workflows/lint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 85821d0..9370a31 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,7 +4,8 @@ name: Ansible Lint # feel free to pick your own name on: pull_request: branches: - - actions + - main + jobs: build: From 0e5dee9cec618be6658a9bd41dea0de78510949e Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 19:38:45 +0200 Subject: [PATCH 09/21] on actions branch --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9370a31..a26ec5e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,8 +17,8 @@ jobs: - uses: actions/checkout@v2 - name: building collection - run: | - ./build_collecion.sh + run: ansible-galaxy collection build --output-path ./releases + - name: relase new version uses: softprops/action-gh-release@v1 with: From a9c5a67c7f8ee6798feef87588b03818520ab1a9 Mon Sep 17 00:00:00 2001 From: ppanos Date: Mon, 20 Jun 2022 19:45:16 +0200 Subject: [PATCH 10/21] add tag --- .github/workflows/lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a26ec5e..9006618 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,9 +19,15 @@ jobs: - name: building collection run: ansible-galaxy collection build --output-path ./releases + - name: Generate release tag + id: tag + run: | + echo "::set-output name=release_tag::UserBuild_$(date +"%Y.%m.%d_%H-%M")" + - name: relase new version uses: softprops/action-gh-release@v1 with: + tag_name: ${{ steps.tag.outputs.release_tag }} files: ./releases/*.tar.gz # - name: Lint Ansible Playbook From 25ef58ba06dee74434fa1cffddabf8685e536e49 Mon Sep 17 00:00:00 2001 From: ppanos Date: Wed, 22 Jun 2022 08:17:12 +0200 Subject: [PATCH 11/21] Fix names and run script --- .github/workflows/{lint.yml => cicd.yml} | 5 +++-- build_collection.sh | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) rename .github/workflows/{lint.yml => cicd.yml} (96%) diff --git a/.github/workflows/lint.yml b/.github/workflows/cicd.yml similarity index 96% rename from .github/workflows/lint.yml rename to .github/workflows/cicd.yml index 9006618..6f46c40 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/cicd.yml @@ -17,14 +17,15 @@ jobs: - uses: actions/checkout@v2 - name: building collection - run: ansible-galaxy collection build --output-path ./releases + run: ./build_collection.sh + shell: bash - name: Generate release tag id: tag run: | echo "::set-output name=release_tag::UserBuild_$(date +"%Y.%m.%d_%H-%M")" - - name: relase new version + - name: Relase new version uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.tag.outputs.release_tag }} diff --git a/build_collection.sh b/build_collection.sh index 0c4304f..c26d069 100755 --- a/build_collection.sh +++ b/build_collection.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash +rm -rf ./releases/*.tar.gz ansible-galaxy collection build --output-path ./releases \ No newline at end of file From d12c262773bb0dfa19f32be062713afd3c82537a Mon Sep 17 00:00:00 2001 From: ppanos Date: Wed, 22 Jun 2022 08:30:03 +0200 Subject: [PATCH 12/21] Release name include Version --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 6f46c40..34ffbc8 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -23,7 +23,7 @@ jobs: - name: Generate release tag id: tag run: | - echo "::set-output name=release_tag::UserBuild_$(date +"%Y.%m.%d_%H-%M")" + echo "::set-output name=release_tag::Version_$(grep -oP '^version: \K.*' ./galaxy.yml)"" - name: Relase new version uses: softprops/action-gh-release@v1 From 635a153d7af3313d710d437a330bb5c6c5a7c344 Mon Sep 17 00:00:00 2001 From: ppanos Date: Wed, 22 Jun 2022 08:30:49 +0200 Subject: [PATCH 13/21] Release name include Version --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 34ffbc8..83d928a 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -23,7 +23,7 @@ jobs: - name: Generate release tag id: tag run: | - echo "::set-output name=release_tag::Version_$(grep -oP '^version: \K.*' ./galaxy.yml)"" + echo "::set-output name=release_tag::Version_$(grep -oP '^version: \K.*' ./galaxy.yml)" - name: Relase new version uses: softprops/action-gh-release@v1 From 36798f508571c853eb205df95d9bbd251699f101 Mon Sep 17 00:00:00 2001 From: ppanos Date: Wed, 22 Jun 2022 08:36:50 +0200 Subject: [PATCH 14/21] final tuning --- .github/workflows/cicd.yml | 40 +------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 83d928a..c12042f 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,12 +1,11 @@ --- -name: Ansible Lint # feel free to pick your own name +name: Ansible Release # feel free to pick your own name on: pull_request: branches: - main - jobs: build: @@ -30,41 +29,4 @@ jobs: with: tag_name: ${{ steps.tag.outputs.release_tag }} files: ./releases/*.tar.gz - - # - name: Lint Ansible Playbook - # # replace "master" with any valid ref - # uses: ansible/ansible-lint-action@151b9a2 - # with: - # # [required] - # # Paths to ansible files (i.e., playbooks, tasks, handlers etc..) - # # or valid Ansible directories according to the Ansible role - # # directory structure. - # # If you want to lint multiple ansible files, use the following syntax - # # targets: | - # # playbook_1.yml - # # playbook_2.yml - # targets: "./" - # # [optional] - # # Arguments to be passed to the ansible-lint - - # # Options: - # # -q quieter, although not silent output - # # -p parseable output in the format of pep8 - # # --parseable-severity parseable output including severity of rule - # # -r RULESDIR specify one or more rules directories using one or - # # more -r arguments. Any -r flags override the default - # # rules in ansiblelint/rules, unless -R is also used. - # # -R Use default rules in ansiblelint/rules in addition to - # # any extra - # # rules directories specified with -r. There is no need - # # to specify this if no -r flags are used - # # -t TAGS only check rules whose id/tags match these values - # # -x SKIP_LIST only check rules whose id/tags do not match these - # # values - # # --nocolor disable colored output - # # --exclude=EXCLUDE_PATHS - # # path to directories or files to skip. This option is - # # repeatable. - # # -c C Specify configuration file to use. Defaults to ".ansible-lint" - # args: "-q" ... From b4fb5ec198c8dd337e8a4dc1b690b549f78de725 Mon Sep 17 00:00:00 2001 From: ppanos Date: Wed, 22 Jun 2022 08:59:47 +0200 Subject: [PATCH 15/21] latest changes --- build_collection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_collection.sh b/build_collection.sh index c26d069..9b821db 100755 --- a/build_collection.sh +++ b/build_collection.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -rm -rf ./releases/*.tar.gz + ansible-galaxy collection build --output-path ./releases \ No newline at end of file From 40e2e1e032261857b07be6cf2300c2603506c55e Mon Sep 17 00:00:00 2001 From: ppanos Date: Wed, 22 Jun 2022 09:25:44 +0200 Subject: [PATCH 16/21] Releasing on push --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index c12042f..2466d72 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -2,7 +2,7 @@ name: Ansible Release # feel free to pick your own name on: - pull_request: + push: branches: - main From d46dbb576471f0130420d3fc6a7b99017791433b Mon Sep 17 00:00:00 2001 From: ppanos Date: Thu, 23 Jun 2022 10:17:34 +0200 Subject: [PATCH 17/21] CI/CD only runs when file galaxy changed --- .github/workflows/cicd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 2466d72..3317d6b 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -5,12 +5,12 @@ on: push: branches: - main + paths: + - 'galaxy.yml' jobs: build: - runs-on: ubuntu-latest - steps: # Important: This sets up your GITHUB_WORKSPACE environment variable - uses: actions/checkout@v2 From 94a579021c7e13dad2361f0876fc487d8e7aedff Mon Sep 17 00:00:00 2001 From: ppanos Date: Thu, 23 Jun 2022 10:18:44 +0200 Subject: [PATCH 18/21] CI/CD only runs when file galaxy changed-test --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index 0b1d098..a1d3471 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: redhat_cop name: controller_casc # The version of the collection. Must be compatible with semantic versioning -version: 0.0.150 +version: 0.0.151 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md From 3fd7eed81fb2def359b638a3f642c8aa677cd013 Mon Sep 17 00:00:00 2001 From: ppanos Date: Thu, 23 Jun 2022 10:22:07 +0200 Subject: [PATCH 19/21] test without changing galaxy --- build_collection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_collection.sh b/build_collection.sh index 9b821db..194d3bf 100755 --- a/build_collection.sh +++ b/build_collection.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -ansible-galaxy collection build --output-path ./releases \ No newline at end of file +ansible-galaxy collection build --output-path ./releases From 1613a1c434d9030681c7da339330628cfbce6155 Mon Sep 17 00:00:00 2001 From: ppanos Date: Thu, 23 Jun 2022 10:24:01 +0200 Subject: [PATCH 20/21] passing tests --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index a1d3471..1208e8e 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: redhat_cop name: controller_casc # The version of the collection. Must be compatible with semantic versioning -version: 0.0.151 +version: 0.0.149 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md From 2393b29097d98f3d0d7419beb37a44e98d5b46bf Mon Sep 17 00:00:00 2001 From: ppanos Date: Tue, 28 Jun 2022 09:43:29 +0200 Subject: [PATCH 21/21] Updated publish.sh script --- publish_collection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish_collection.sh b/publish_collection.sh index 3064dad..fe6522c 100755 --- a/publish_collection.sh +++ b/publish_collection.sh @@ -4,5 +4,5 @@ if [ $# -ne 1 ]; then echo "usage: ${0} " exit 1 fi -ansible-galaxy collection publish ${1} -s inbound-redhat_cop +ansible-galaxy collection publish ./releases/${1} -s inbound-redhat_cop rm -rf ${1}