Skip to content

Commit

Permalink
Upload logs fixes (#9)
Browse files Browse the repository at this point in the history
* Deploy Network
* Add Permissions
* Minor changes
* Concurrency change
* Destroy Network
* Fix commit sha
  • Loading branch information
bane authored Jan 18, 2024
1 parent e0aa52e commit 6a3aee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/destroy-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ jobs:
working-directory: ansible
run: |
echo "${{ secrets.VAULT_PASSWORD }}" > password.txt
sed 's/devnet/${{ inputs.environment }}/g' inventory/aws_ec2.yml > inventory/aws_ec2.yml.tmp && mv inventory/aws_ec2.yml.tmp inventory/aws_ec2.yml
sed 's/devnet/${{ inputs.environment }}/g' roles/upload-logs/tasks/logs.yml > roles/upload-logs/tasks/logs.yml.tmp && mv roles/upload-logs/tasks/logs.yml.tmp roles/upload-logs/tasks/logs.yml
sed 's/{{ current_datetime\.stdout }}/${{ github.run_id }}/g' roles/upload-logs/tasks/logs.yml > roles/upload-logs/tasks/logs.yml.tmp && mv roles/upload-logs/tasks/logs.yml.tmp roles/upload-logs/tasks/logs.yml
- name: Upload logs
working-directory: ansible
run: |
ansible-playbook upload-logs.yml
ansible-playbook upload-logs.yml --extra-vars "clean_deploy_title=${{ inputs.environment }}"
destroy_network:
name: Destroy ${{ inputs.environment }} Network
Expand Down

0 comments on commit 6a3aee5

Please sign in to comment.