Skip to content

Commit

Permalink
Changed volume mount for ansible-galaxy
Browse files Browse the repository at this point in the history
  • Loading branch information
cradle8810 committed Nov 6, 2024
1 parent aac9d1a commit c1fc10d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/develop_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ jobs:
credentials:
username: "${{ secrets.GHCR_USERNAME }}"
password: "${{ secrets.GHCR_PASSWORD }}"
volumes:
- ansible-galaxy:/github/home/.ansible
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Prepare environments (ansible-galaxy install role)
run: |
ansible-galaxy role install -r requirements.yml --ignore-errors --force
ansible-galaxy role install -r requirements.yml --ignore-errors
- name: Prepare environments (ansible-galaxy install collection)
run: |
ansible-galaxy collection install -r requirements.yml --ignore-errors --force
ansible-galaxy collection install -r requirements.yml --ignore-errors
- name: Run Ansible-lint
run: |
Expand Down Expand Up @@ -77,6 +79,7 @@ jobs:
volumes:
- /home/runner/ansible-vault:/tmp:ro
- /home/runner/.ssh:/root/.ssh:ro
- ansible-galaxy:/github/home/.ansible
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/main_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@ jobs:
credentials:
username: "${{ secrets.GHCR_USERNAME }}"
password: "${{ secrets.GHCR_PASSWORD }}"
volumes:
- ansible-galaxy:/github/home/.ansible
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Prepare environments (ansible-galaxy install role)
run: |
ansible-galaxy role install -r requirements.yml --ignore-errors --force
ansible-galaxy role install -r requirements.yml --ignore-errors
- name: Prepare environments (ansible-galaxy install collection)
run: |
ansible-galaxy collection install -r requirements.yml --ignore-errors --force
ansible-galaxy collection install -r requirements.yml --ignore-errors
- name: Run Ansible-lint
run: |
Expand Down Expand Up @@ -79,6 +81,7 @@ jobs:
volumes:
- /home/runner/ansible-vault:/tmp:ro
- /home/runner/.ssh:/root/.ssh:ro
- ansible-galaxy:/github/home/.ansible
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -126,6 +129,7 @@ jobs:
volumes:
- /home/runner/ansible-vault:/tmp:ro
- /home/runner/.ssh:/root/.ssh:ro
- ansible-galaxy:/github/home/.ansible
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit c1fc10d

Please sign in to comment.