Commit 2460897 1 parent 21e94fc commit 2460897 Copy full SHA for 2460897
File tree 6 files changed +33
-19
lines changed
docker-swarm-app-caddy/assets
6 files changed +33
-19
lines changed Original file line number Diff line number Diff line change 28
28
29
29
# Steps represent a sequence of tasks that will be executed as part of the job
30
30
steps :
31
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32
31
- uses : actions/checkout@v4
33
32
34
33
- name : Run ansible-lint
Original file line number Diff line number Diff line change
1
+ - name : Determine affected roles
2
+ hosts : localhost
3
+ gather_facts : false
4
+
5
+ roles :
6
+ - utils-affected-roles
Original file line number Diff line number Diff line change 6
6
order authenticate before respond
7
7
order authorize before basicauth
8
8
9
+ dynamic_dns {
10
+ provider digitalocean {env.DIGITALOCEAN_API_TOKEN}
11
+ domains {
12
+ {{domain}} @ www
13
+ }
14
+ dynamic_domains
15
+ }
16
+
9
17
security {
10
18
oauth identity provider github {env.GITHUB_CLIENT_ID} {env.GITHUB_CLIENT_SECRET}
11
19
49
57
}
50
58
}
51
59
60
+ # Snippet enable automatic DNS configuration
61
+ (external-dns) {
62
+ tls {
63
+ dns digitalocean {env.DIGITALOCEAN_API_TOKEN}
64
+ }
65
+ }
66
+
67
+ # Auth endpoint for caddy security
52
68
auth .{{domain} } {
69
+ import external-dns
53
70
authenticate with myportal
54
71
}
55
72
56
- (external_dns) {
57
- tls {
58
- dns digitalocean {env.DIGITALOCEAN_API_TOKEN}
59
- }
60
- }
73
+
Original file line number Diff line number Diff line change @@ -54,18 +54,6 @@ services:
54
54
caddy.reverse_proxy : " {{ '{{' }}upstreams 80{{ '}}' }}"
55
55
caddy.authorize : with admins_policy
56
56
57
- whoami-dns :
58
- # A container that exposes an API to show its IP address
59
- image : containous/whoami
60
- networks :
61
- - caddy
62
- deploy :
63
- labels :
64
- caddy : whoami-dns.{{domain}}
65
- caddy.import : external_dns
66
- caddy.reverse_proxy : " {{ '{{' }}upstreams 80{{ '}}' }}"
67
-
68
-
69
57
volumes :
70
58
caddy_data :
71
59
caddy_config :
Original file line number Diff line number Diff line change 1
1
# Default variables for affected_roles role
2
2
default_branch : " main"
3
- roles_folder : " {{ playbook_dir }} /roles"
3
+ roles_folder : " ansible /roles"
Original file line number Diff line number Diff line change 21
21
tags :
22
22
- skip_ansible_lint
23
23
24
+ - name : Debug git diff output
25
+ debug :
26
+ msg : " {{ diff.stdout_lines }}"
27
+
24
28
- name : Extract folders from the diff
25
29
set_fact :
26
30
changed_folders : " {{
30
34
}}"
31
35
when : branch.stdout != default_branch
32
36
37
+ - name : Debug changed_folders output
38
+ debug :
39
+ msg : " {{ changed_folders }}"
40
+
33
41
- name : Filter folders within the roles directory
34
42
set_fact :
35
43
roles_with_changes : " {{ changed_folders
You can’t perform that action at this time.
0 commit comments