mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Fix working directory for actions
This commit is contained in:
11
.github/workflows/ansible_kira_restart.yml
vendored
11
.github/workflows/ansible_kira_restart.yml
vendored
@@ -8,10 +8,6 @@ on:
|
||||
required: true
|
||||
default: Test
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./ansible
|
||||
|
||||
jobs:
|
||||
kira-restart:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,6 +18,7 @@ jobs:
|
||||
- name: Inject secrets
|
||||
run: 'echo "$SECRETS_YML" > variables/secrets.yml'
|
||||
shell: bash
|
||||
working-directory: ./ansible
|
||||
env:
|
||||
SECRETS_YML: ${{secrets.SECRETS_YML}}
|
||||
SUDO_PASSWORD: ${{secrets.SUDO_PASSWORD}}
|
||||
@@ -29,10 +26,10 @@ jobs:
|
||||
- name: Restart Kira
|
||||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
playbook: playbooks/restart-kira.yml
|
||||
requirements: requirements.yml
|
||||
playbook: ansible/playbooks/restart-kira.yml
|
||||
requirements: ansible/requirements.yml
|
||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
known_hosts: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||
options: |
|
||||
--inventory ./inventories/civmc-${{inputs.environment}}.yml
|
||||
--inventory ./ansible/inventories/civmc-${{inputs.environment}}.yml
|
||||
-e "ansible_become_password=${{secrets.SUDO_PASSWORD}}"
|
||||
|
||||
11
.github/workflows/ansible_ping.yml
vendored
11
.github/workflows/ansible_ping.yml
vendored
@@ -8,10 +8,6 @@ on:
|
||||
required: true
|
||||
default: Test
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./ansible
|
||||
|
||||
jobs:
|
||||
ping:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,16 +18,17 @@ jobs:
|
||||
- name: Inject secrets
|
||||
run: 'echo "$SECRETS_YML" > variables/secrets.yml'
|
||||
shell: bash
|
||||
working-directory: ./ansible
|
||||
env:
|
||||
SECRETS_YML: ${{secrets.SECRETS_YML}}
|
||||
|
||||
- name: Ping
|
||||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
playbook: playbooks/ping.yml
|
||||
requirements: requirements.yml
|
||||
playbook: ansible/playbooks/ping.yml
|
||||
requirements: ansible/requirements.yml
|
||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
known_hosts: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||
options: |
|
||||
--inventory ./inventories/civmc-${{inputs.environment}}.yml
|
||||
--inventory ./ansible/inventories/civmc-${{inputs.environment}}.yml
|
||||
|
||||
|
||||
11
.github/workflows/ansible_setup_server.yml
vendored
11
.github/workflows/ansible_setup_server.yml
vendored
@@ -8,10 +8,6 @@ on:
|
||||
required: true
|
||||
default: Test
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./ansible
|
||||
|
||||
jobs:
|
||||
setup-server:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,6 +18,7 @@ jobs:
|
||||
- name: Inject secrets
|
||||
run: 'echo "$SECRETS_YML" > variables/secrets.yml'
|
||||
shell: bash
|
||||
working-directory: ./ansible
|
||||
env:
|
||||
SECRETS_YML: ${{secrets.SECRETS_YML}}
|
||||
SUDO_PASSWORD: ${{secrets.SUDO_PASSWORD}}
|
||||
@@ -29,10 +26,10 @@ jobs:
|
||||
- name: Setup Server
|
||||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
playbook: playbooks/setup-server.yml
|
||||
requirements: requirements.yml
|
||||
playbook: ansible/playbooks/setup-server.yml
|
||||
requirements: ansible/requirements.yml
|
||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
known_hosts: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||
options: |
|
||||
--inventory ./inventories/civmc-${{inputs.environment}}.yml
|
||||
--inventory ./ansible/inventories/civmc-${{inputs.environment}}.yml
|
||||
-e "ansible_become_password=${{secrets.SUDO_PASSWORD}}"
|
||||
|
||||
11
.github/workflows/ansible_start_server.yml
vendored
11
.github/workflows/ansible_start_server.yml
vendored
@@ -8,10 +8,6 @@ on:
|
||||
required: true
|
||||
default: Test
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./ansible
|
||||
|
||||
jobs:
|
||||
start-server:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,6 +18,7 @@ jobs:
|
||||
- name: Inject secrets
|
||||
run: 'echo "$SECRETS_YML" > variables/secrets.yml'
|
||||
shell: bash
|
||||
working-directory: ./ansible
|
||||
env:
|
||||
SECRETS_YML: ${{secrets.SECRETS_YML}}
|
||||
SUDO_PASSWORD: ${{secrets.SUDO_PASSWORD}}
|
||||
@@ -29,10 +26,10 @@ jobs:
|
||||
- name: Start Server
|
||||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
playbook: playbooks/start-server.yml
|
||||
requirements: requirements.yml
|
||||
playbook: ansible/playbooks/start-server.yml
|
||||
requirements: ansible/requirements.yml
|
||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
known_hosts: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||
options: |
|
||||
--inventory ./inventories/civmc-${{inputs.environment}}.yml
|
||||
--inventory ./ansible/inventories/civmc-${{inputs.environment}}.yml
|
||||
-e "ansible_become_password=${{secrets.SUDO_PASSWORD}}"
|
||||
|
||||
11
.github/workflows/ansible_stop_server.yml
vendored
11
.github/workflows/ansible_stop_server.yml
vendored
@@ -8,10 +8,6 @@ on:
|
||||
required: true
|
||||
default: Test
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./ansible
|
||||
|
||||
jobs:
|
||||
stop-server:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,6 +18,7 @@ jobs:
|
||||
- name: Inject secrets
|
||||
run: 'echo "$SECRETS_YML" > variables/secrets.yml'
|
||||
shell: bash
|
||||
working-directory: ./ansible
|
||||
env:
|
||||
SECRETS_YML: ${{secrets.SECRETS_YML}}
|
||||
SUDO_PASSWORD: ${{secrets.SUDO_PASSWORD}}
|
||||
@@ -29,10 +26,10 @@ jobs:
|
||||
- name: Stop Server
|
||||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
playbook: playbooks/stop-server.yml
|
||||
requirements: requirements.yml
|
||||
playbook: ansible/playbooks/stop-server.yml
|
||||
requirements: ansible/requirements.yml
|
||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
known_hosts: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||
options: |
|
||||
--inventory ./inventories/civmc-${{inputs.environment}}.yml
|
||||
--inventory ./ansible/inventories/civmc-${{inputs.environment}}.yml
|
||||
-e "ansible_become_password=${{secrets.SUDO_PASSWORD}}"
|
||||
|
||||
11
.github/workflows/ansible_update_server.yml
vendored
11
.github/workflows/ansible_update_server.yml
vendored
@@ -8,10 +8,6 @@ on:
|
||||
required: true
|
||||
default: Test
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./ansible
|
||||
|
||||
jobs:
|
||||
update-server:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,6 +18,7 @@ jobs:
|
||||
- name: Inject secrets
|
||||
run: 'echo "$SECRETS_YML" > variables/secrets.yml'
|
||||
shell: bash
|
||||
working-directory: ./ansible
|
||||
env:
|
||||
SECRETS_YML: ${{secrets.SECRETS_YML}}
|
||||
SUDO_PASSWORD: ${{secrets.SUDO_PASSWORD}}
|
||||
@@ -29,10 +26,10 @@ jobs:
|
||||
- name: Update Server
|
||||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
playbook: playbooks/update-server.yml
|
||||
requirements: requirements.yml
|
||||
playbook: ansible/playbooks/update-server.yml
|
||||
requirements: ansible/requirements.yml
|
||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
known_hosts: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||
options: |
|
||||
--inventory ./inventories/civmc-${{inputs.environment}}.yml
|
||||
--inventory ./ansible/inventories/civmc-${{inputs.environment}}.yml
|
||||
-e "ansible_become_password=${{secrets.SUDO_PASSWORD}}"
|
||||
|
||||
Reference in New Issue
Block a user