generated from CC/VMServiceTemplate
n8n ci/cd base
This commit is contained in:
@@ -21,6 +21,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check files
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd terraform
|
||||||
|
|
||||||
- uses: hashicorp/setup-terraform@v4
|
- uses: hashicorp/setup-terraform@v4
|
||||||
|
|
||||||
- name: Select tfvars
|
- name: Select tfvars
|
||||||
@@ -35,6 +40,7 @@ jobs:
|
|||||||
- name: Check files
|
- name: Check files
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
cd ..
|
||||||
pwd
|
pwd
|
||||||
ls
|
ls
|
||||||
|
|
||||||
@@ -49,9 +55,6 @@ jobs:
|
|||||||
ansible-configure:
|
ansible-configure:
|
||||||
needs: terraform-deploy
|
needs: terraform-deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ansible
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -76,10 +79,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Ansible Directories
|
- name: Setup Ansible Directories
|
||||||
run: |
|
run: |
|
||||||
mkdir inventory
|
pwd
|
||||||
cat inventory/inventory.yml
|
cat ansible/inventory/inventory.yml
|
||||||
ls -r
|
ls -r
|
||||||
|
|
||||||
- name: Run playbook
|
- name: Run playbook
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook playbooks/docker_copy.yml -i inventory/inventory.yml -u cloud --private-key ~/.ssh/id_rsa
|
ansible-playbook ansible/playbooks/docker_copy.yml -i ansible/inventory/inventory.yml -u cloud --private-key ~/.ssh/id_rsa
|
||||||
|
|||||||
Reference in New Issue
Block a user