Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
---
name: Integration
"on":
workflow_call: null
workflow_call:
inputs:
galaxy_server_url:
description: >-
URL of an additional Galaxy server (e.g. Automation Hub).
When set, the server is registered as "certified" and placed
before the default Galaxy server in ANSIBLE_GALAXY_SERVER_LIST.
required: false
type: string
galaxy_server_auth_url:
description: >-
SSO / token endpoint for the additional Galaxy server
(e.g. the Red Hat SSO endpoint for Automation Hub).
required: false
type: string
secrets:
galaxy_server_token:
description: >-
Auth token for the additional Galaxy server.
required: false
jobs:
tox-matrix:
name: Matrix Integration
Expand Down Expand Up @@ -61,3 +80,8 @@ jobs:
tox-ansible.ini
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
ANSIBLE_GALAXY_SERVER_LIST: >-
${{ inputs.galaxy_server_url != '' && 'certified,galaxy' || '' }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_URL: ${{ inputs.galaxy_server_url }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_TOKEN: ${{ secrets.galaxy_server_token }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_AUTH_URL: ${{ inputs.galaxy_server_auth_url }}
23 changes: 23 additions & 0 deletions .github/workflows/sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ name: Ansible sanity
extra_matrix_entries:
required: false
type: string
galaxy_server_url:
description: >-
URL of an additional Galaxy server (e.g. Automation Hub).
When set, the server is registered as "certified" and placed
before the default Galaxy server in ANSIBLE_GALAXY_SERVER_LIST.
required: false
type: string
galaxy_server_auth_url:
description: >-
SSO / token endpoint for the additional Galaxy server
(e.g. the Red Hat SSO endpoint for Automation Hub).
required: false
type: string
secrets:
galaxy_server_token:
description: >-
Auth token for the additional Galaxy server.
required: false
jobs:
tox-matrix:
name: Matrix Sanity
Expand Down Expand Up @@ -72,3 +90,8 @@ jobs:
tox-ansible.ini
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
ANSIBLE_GALAXY_SERVER_LIST: >-
${{ inputs.galaxy_server_url != '' && 'certified,galaxy' || '' }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_URL: ${{ inputs.galaxy_server_url }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_TOKEN: ${{ secrets.galaxy_server_token }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_AUTH_URL: ${{ inputs.galaxy_server_auth_url }}
23 changes: 23 additions & 0 deletions .github/workflows/unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ name: Ansible Unit
extra_matrix_entries:
required: false
type: string
galaxy_server_url:
description: >-
URL of an additional Galaxy server (e.g. Automation Hub).
When set, the server is registered as "certified" and placed
before the default Galaxy server in ANSIBLE_GALAXY_SERVER_LIST.
required: false
type: string
galaxy_server_auth_url:
description: >-
SSO / token endpoint for the additional Galaxy server
(e.g. the Red Hat SSO endpoint for Automation Hub).
required: false
type: string
secrets:
galaxy_server_token:
description: >-
Auth token for the additional Galaxy server.
required: false
jobs:
tox-matrix:
name: Matrix Unit
Expand Down Expand Up @@ -83,3 +101,8 @@ jobs:
tox-ansible.ini
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
ANSIBLE_GALAXY_SERVER_LIST: >-
${{ inputs.galaxy_server_url != '' && 'certified,galaxy' || '' }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_URL: ${{ inputs.galaxy_server_url }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_TOKEN: ${{ secrets.galaxy_server_token }}
ANSIBLE_GALAXY_SERVER_CERTIFIED_AUTH_URL: ${{ inputs.galaxy_server_auth_url }}
Loading