Skip to content

Commit

Permalink
artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed May 24, 2024
1 parent b2bdc4e commit 571db82
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/stage_online.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,16 @@ jobs:

- name: Check if inventory present
run: |
ls -l ${{ github.workspace }}
cat ${{ github.workspace }}/hosts.ini
- name: Get key and hosts.ini
run: |
cp ${{ github.workspace }}/hosts.ini inventory/hosts.ini
cp ${{ github.workspace }}/.key.private ${{ github.workspace }}/DO/infra/.key.private
cp ${{ github.workspace }}/.key.pub ${{ github.workspace }}/DO/infra/.key.pub
shell: bash

- name: Set up Python
id: setup_python
uses: actions/setup-python@v5
Expand All @@ -144,16 +152,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install ansible pytest-testinfra
pip3 install ansible
ansible --version
- name: Get key and hosts.ini
run: |
cp ${{ github.workspace }}/hosts.ini inventory/hosts.ini
cp ${{ github.workspace }}/.key.private ${{ github.workspace }}/DO/infra/.key.private
cp ${{ github.workspace }}/.key.pub ${{ github.workspace }}/DO/infra/.key.pub
shell: bash

- name: Test if reachable
run: |
ANSIBLE_HOST_KEY_CHECKING=False ansible RKE2_CLUSTER -m ping -u root
Expand Down

0 comments on commit 571db82

Please sign in to comment.