Skip to content

Commit 272b82f

Browse files
authored
Merge pull request #887 from code0-tech/886-add-actions-to-aquila-in-config-generator
Add actions to aquila in config generator
2 parents 8418ac6 + 707316f commit 272b82f

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

container/config-generator/templates/aquila.service.configuration.json.erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,14 @@
1212
"identifier": "draco-cron",
1313
"token": "<%= env!('DRACO_CRON_AQUILA_TOKEN') %>"
1414
}
15+
],
16+
"actions": [
17+
<% find_envs(/AQUILA_ACTION_(\S+?)_.+/, group: true).each_with_index do |(_, envs), i| %>
18+
<%= ',' if i > 0 %>
19+
{
20+
"identifier": "<%= envs.fetch('IDENTIFIER', '') %>",
21+
"token": "<%= envs.fetch('TOKEN', '') %>"
22+
}
23+
<% end %>
1524
]
1625
}

docker-compose/docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ services:
191191
restart: unless-stopped
192192
profiles:
193193
- runtime
194+
networks:
195+
- default
196+
- aquila
194197

195198
taurus:
196199
depends_on:
@@ -252,3 +255,7 @@ services:
252255
volumes:
253256
generated-configs:
254257
postgres-data:
258+
259+
networks:
260+
aquila:
261+
name: codezero-aquila

0 commit comments

Comments
 (0)