Add build and deploy actions. #1
5
.github/workflows/deployment.yml
vendored
5
.github/workflows/deployment.yml
vendored
@@ -72,3 +72,8 @@ jobs:
|
||||
- name: Lint Playbooks
|
||||
run: ansible-lint
|
||||
working-directory: ./playbooks
|
||||
|
||||
- name: Run Playbook
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
run: ansible-playbook deployment.yml
|
||||
working-directory: ./playbooks
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
- name: Deploy artifact to instance.
|
||||
hosts: localhost
|
||||
vars_files:
|
||||
- ../config/proxy.json
|
||||
- ../config/ansible.secret.json
|
||||
- ../secrets/infrastructure.secret.json
|
||||
vars:
|
||||
ansible_connection: aws_ssm
|
||||
|
||||
Reference in New Issue
Block a user