-
Notifications
You must be signed in to change notification settings - Fork 33
23 lines (22 loc) · 1.08 KB
/
build_deploy_ee.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
name: Ansible Builder # feel free to pick your own name
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
# - name: Add cloud and galaxy tokens
# run: echo -e "${{ secrets.galaxy_token }}" >> ansible.cfg
- name: Install ansible and builder
run: pip3 install ansible-core ansible-builder
- name: Install Collections
run: ansible-galaxy collection install -f -r collections/requirements.yml
- name: Docker login
run: docker login -u="${{ vars.quay_username }}+github_action" -p="${{ secrets.quay_token }}" quay.io
- name: Run Ansible Playbook
run: ansible-playbook playbooks/build_ee.yml -i inventory_ci.yml -l dev -e "ee_registry_username=${{ vars.quay_username }}+github_action" -e "ee_registry_password=${{ secrets.quay_token }}" -e "ah_token=something" -e "ee_pull_collections_from_hub=false" --connection=local -e "ee_registry_dest=quay.io/${{ vars.quay_username }}/config_as_code_ee" -vvv
env:
ANSIBLE_HOST_KEY_CHECKING: False
...