-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates release and adds an integration test. (#61)
* update workflows * fix readme * update release and testing * update release and testing
- Loading branch information
1 parent
d6e735c
commit dfb5ee3
Showing
5 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
- name: Playbook to configure execution environments | ||
hosts: localhost | ||
connection: local | ||
gather_facts: false | ||
pre_tasks: | ||
- name: Validate that ansible-builder is installed on target system | ||
block: | ||
- name: Try command | ||
ansible.builtin.shell: ansible-builder --version | ||
register: r_builder | ||
changed_when: false | ||
rescue: | ||
- name: Try to install with rpms | ||
block: | ||
- name: Install ansible-builder from rpm | ||
ansible.builtin.dnf: | ||
name: | ||
- ansible-builder | ||
- ansible-core | ||
enablerepo: ansible-automation-platform-2.2-for-rhel-8-x86_64-rpms | ||
state: present | ||
become: true | ||
rescue: | ||
- name: Install ansible-builder from pip | ||
ansible.builtin.pip: | ||
name: | ||
- ansible-builder | ||
- ansible-core | ||
state: latest | ||
|
||
tasks: | ||
- name: Include ee_builder role | ||
ansible.builtin.include_role: | ||
name: ee_builder | ||
vars: | ||
ee_pull_collections_from_hub: false | ||
ee_list: | ||
- name: config_as_code_ee | ||
bindep: | ||
- unzip | ||
python: | ||
- ansible-lint | ||
- netaddr | ||
collections: | ||
- name: infra.controller_configuration | ||
- name: infra.ah_configuration | ||
- name: infra.ee_utilities | ||
- name: infra.aap_utilities | ||
- name: awx.awx | ||
append: | ||
- RUN dnf update -y | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Run Test of EE utilities | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
Integration-test: | ||
name: Run Test of EE utilities | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Ansible and Ansible Builder | ||
run: pip install --upgrade ansible-core ansible-builder | ||
|
||
- name: Install Dependencies | ||
run: ansible-galaxy collection install containers.podman -f | ||
|
||
- name: Docker login | ||
run: docker login -u="redhat_cop+github_action" -p="${{ secrets.quay_token }}" quay.io | ||
|
||
- name: Build EE | ||
run: ansible-playbook .github/tests/build_ee.yml -e "ee_registry_username=redhat_cop+github_action" -e "ee_registry_password=${{ secrets.quay_token }}" --connection=local -e "ee_registry_dest=quay.io/redhat_cop/config_as_code_ee" -vvv | ||
env: | ||
ANSIBLE_HOST_KEY_CHECKING: False | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[defaults] | ||
collections_paths=collections | ||
roles_path=roles/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters