-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (40 loc) · 1.81 KB
/
build_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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
name: Build and deploy new EE
on:
workflow_call:
inputs:
quay_username:
description: "username/namespace to upload the EE to"
required: true
type: string
secrets:
quay_token:
description: token for quay
required: true
jobs:
build_ee:
runs-on: ubuntu-latest
steps:
- name: Checkout tooling repo
uses: actions/checkout@v4
with:
repository: redhat-cop/ansible_collections_tooling
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install podman
run: sudo apt -y install podman
- name: Install Ansible and Ansible Builder
run: pip install --upgrade setuptools ansible-core ansible-builder
- name: Move ansible.cfg if exists
run: mv .github/files/ansible.cfg . || echo "Nothing to move"
- name: Install Collections
run: ansible-galaxy collection install -f -r .github/deploy_ee/requirements.yml
- name: Podman login
run: podman login quay.io --username "${{ inputs.quay_username }}+github_action" --password ${{ secrets.quay_token }}
- name: Build EE
# run: ansible-playbook .github/deploy_ee/build_ee.yml -i .github/deploy_ee/inventory_ci.yml -l dev -e "ee_registry_username=${{ inputs.quay_username }}+github_action" -e "ee_registry_password=${{ secrets.quay_token }}" --connection=local -e "ee_registry_dest=quay.io/${{ inputs.quay_username }}/config_as_code_ee" -vvv
run: ansible-playbook .github/deploy_ee/build_ee.yml -e "ee_registry_username=${{ inputs.quay_username }}+github_action" -e "ee_registry_password=${{ secrets.quay_token }}" --connection=local -e "ee_registry_dest=quay.io/${{ inputs.quay_username }}/config_as_code_ee" -vvv
env:
ANSIBLE_HOST_KEY_CHECKING: false
...