Skip to content

Commit 3ce606c

Browse files
committed
4184: Added woodpecker setup for sub-sites
1 parent 5818831 commit 3ce606c

File tree

3 files changed

+120
-0
lines changed

3 files changed

+120
-0
lines changed

.woodpecker/emnemodul_prod.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
when:
2+
- event: release
3+
4+
skip_clone: true
5+
6+
labels:
7+
zone: DMZ
8+
9+
steps:
10+
- name: Ansible playbook
11+
image: itkdev/ansible-plugin:1
12+
pull: true
13+
settings:
14+
id:
15+
from_secret: id
16+
secret:
17+
from_secret: secret
18+
host:
19+
from_secret: prod_emnemodul_host
20+
path:
21+
from_secret: prod_emnemodul_path
22+
user:
23+
from_secret: user
24+
playbook: 'release'
25+
pre_up:
26+
# Fixes issue with 'Drupal\mysql\Driver\Database\mysql\Connection' not found
27+
- itkdev-docker-compose-server run --rm phpfpm composer2 dump-autoload
28+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes cache:rebuild
29+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes deploy
30+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes locale:update
31+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes locale:import --type=customized --override=none da /app/web/profiles/custom/os2loop/translations/translations.da.po
32+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes cache:rebuild
33+
cron:
34+
cron:
35+
minute: '47'
36+
hour: '*'
37+
day: '*'
38+
month: '*'
39+
weekday: '*'
40+
job: 'itkdev-docker-compose-server exec phpfpm vendor/bin/drush core:cron'

.woodpecker/loop_prod.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
when:
2+
- event: release
3+
4+
skip_clone: true
5+
6+
labels:
7+
zone: DMZ
8+
9+
steps:
10+
- name: Ansible playbook
11+
image: itkdev/ansible-plugin:1
12+
pull: true
13+
settings:
14+
id:
15+
from_secret: id
16+
secret:
17+
from_secret: secret
18+
host:
19+
from_secret: prod_loop_host
20+
path:
21+
from_secret: prod_loop_path
22+
user:
23+
from_secret: user
24+
playbook: 'release'
25+
pre_up:
26+
# Fixes issue with 'Drupal\mysql\Driver\Database\mysql\Connection' not found
27+
- itkdev-docker-compose-server run --rm phpfpm composer2 dump-autoload
28+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes cache:rebuild
29+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes deploy
30+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes locale:update
31+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes locale:import --type=customized --override=none da /app/web/profiles/custom/os2loop/translations/translations.da.po
32+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes cache:rebuild
33+
cron:
34+
cron:
35+
minute: '47'
36+
hour: '*'
37+
day: '*'
38+
month: '*'
39+
weekday: '*'
40+
job: 'itkdev-docker-compose-server exec phpfpm vendor/bin/drush core:cron'

.woodpecker/risikataloop_prod.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
when:
2+
- event: release
3+
4+
skip_clone: true
5+
6+
labels:
7+
zone: DMZ
8+
9+
steps:
10+
- name: Ansible playbook
11+
image: itkdev/ansible-plugin:1
12+
pull: true
13+
settings:
14+
id:
15+
from_secret: id
16+
secret:
17+
from_secret: secret
18+
host:
19+
from_secret: prod_risikataloop_host
20+
path:
21+
from_secret: prod_risikataloop_path
22+
user:
23+
from_secret: user
24+
playbook: 'release'
25+
pre_up:
26+
# Fixes issue with 'Drupal\mysql\Driver\Database\mysql\Connection' not found
27+
- itkdev-docker-compose-server run --rm phpfpm composer2 dump-autoload
28+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes cache:rebuild
29+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes deploy
30+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes locale:update
31+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes locale:import --type=customized --override=none da /app/web/profiles/custom/os2loop/translations/translations.da.po
32+
- itkdev-docker-compose-server run --rm phpfpm vendor/bin/drush --yes cache:rebuild
33+
cron:
34+
cron:
35+
minute: '23'
36+
hour: '*'
37+
day: '*'
38+
month: '*'
39+
weekday: '*'
40+
job: 'itkdev-docker-compose-server exec phpfpm vendor/bin/drush core:cron'

0 commit comments

Comments
 (0)