]> git.immae.eu Git - github/fretlink/ansible-netdata_straight.git/commitdiff
CD: publish to ansible galaxy 5/head
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Thu, 2 Dec 2021 16:54:15 +0000 (17:54 +0100)
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Thu, 2 Dec 2021 16:54:15 +0000 (17:54 +0100)
.github/workflows/pr.yml
meta/main.yml

index 36a66a1418e18d0e2b77efbbe9caeb0567b19e42..1ec82b946862e5d64d5a656ea0ebc670d4247d98 100644 (file)
@@ -7,6 +7,8 @@ on:
   pull_request:
     branches:
       - master
+  release:
+    types: [created, edited, published]
 jobs:
   molecule_default:
     runs-on: ubuntu-latest
@@ -40,3 +42,15 @@ jobs:
       - uses: gofrolist/molecule-action@v2
         with:
           molecule_args: --scenario-name features
+  publish:
+    runs-on: ubuntu-latest
+    needs:
+      - molecule_default
+      - molecule_features
+    if: ${{ github.event_name == 'release' }}
+    steps:
+      - uses: actions/checkout@v2
+      - name: Upload to ansible-galaxy
+        uses: robertdebock/galaxy-action@1.1.0
+        with:
+          galaxy_api_key: '${{ secrets.GALAXY_API_KEY }}'
index 4edfb5081f37e06ef52c1e3cdf715fd2d416a46c..d359a3df85904f6eb0be47635c324ea03b44d5fe 100644 (file)
@@ -44,6 +44,12 @@ galaxy_info:
       versions:
         - 18.04
         - 20.04
+    - name: Fedora
+      versions:
+        - latest
+    - name: Centos
+      versions:
+        - 8
 
   galaxy_tags: []
     # List tags for your role here, one per line. A tag is a keyword that describes