This repository was archived by the owner on Aug 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +12
-7
lines changed
Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v2
22+ - name : Install Ansible v2.10 alpha (GH actions currently uses 2.9)
23+ run : ANSIBLE_SKIP_CONFLICT_CHECK=1 pip install --user ansible==2.10.0a9 && ansible --version
2224 - name : Get latest StackHead version
23- run : git clone --depth 1 --branch master https://github.com/getstackhead/stackhead.git stackhead-repo
25+ run : ansible-galaxy collection install git+ https://github.com/getstackhead/stackhead.git,next -f
2426 - run : ansible-playbook ./__tests__/test-tf-generation.yml
2527
2628 checkLabel :
3739 if : github.event.pull_request.draft == false
3840 steps :
3941 - uses : actions/checkout@v2
42+ - name : Install Ansible v2.10 alpha (GH actions currently uses 2.9)
43+ run : ANSIBLE_SKIP_CONFLICT_CHECK=1 pip install --user ansible==2.10.0a9 && ansible --version
4044 - name : Print Ansible version
4145 run : ansible --version
4246 -
uses :
webfactory/[email protected] 7478 proxied : 0
7579 token : " ${{ secrets.CLOUDFLARE_TOKEN }}"
7680 zone : " ${{ secrets.CLOUDFLARE_ZONE }}"
77- - uses : " getstackhead/stackhead@master "
81+ - uses : getstackhead/stackhead@next
7882 with :
7983 ipaddress : ${{ steps.setup_server.outputs.hcloud_server_created_ipv4 }}
8084 domain : ' ${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11---
22- hosts : localhost
33 connection : local
4+ vars :
5+ stackhead__roles : " ~/.ansible/collections/ansible_collections/getstackhead/stackhead/roles"
46 tasks :
5- - include_vars : " ../stackhead-repo/ansible/__tests__ /variables.yml"
7+ - include_vars : " {{ stackhead__roles }}/stackhead_module_api/testdata /variables.yml"
68 - set_fact :
79 containerapp__expose : " {{ containerapp__expose|default([]) + item.expose }}"
810 when : item.expose is defined and item.expose not in containerapp__expose|default([])
Original file line number Diff line number Diff line change 1212- include_tasks : " {{ role_path }}/tasks/steps/generate-serverblock-tf.yml"
1313
1414# Generate SSL certificate configurations
15- - include_tasks : " roles/stackhead_project /tasks/ssl/ssl-config .yml"
15+ - include_tasks : " {{ stackhead__roles }}/stackhead_module_api /tasks/ssl-certificate .yml"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ resource "nginx_server_block" "nginx-{{ project_name }}" {
33 filename = "{{ project_name }}.conf"
44 enable = true
55
6- {% - set all_ports = containerapp__expose |containerPorts (project_name ) %}
6+ {% - set all_ports = containerapp__expose |getstackhead . stackhead . containerPorts (project_name ) %}
77 markers = {
88 docker_ports = "{{ all_ports|map(attribute='tfstring')|join(',') }}"
99 }
4747 when = destroy
4848 command = " sudo systemctl reload nginx"
4949 }
50- }
50+ }
You can’t perform that action at this time.
0 commit comments