Skip to content

Commit 0329d02

Browse files
committed
Release 1.0.3
Merge branch 'main' into production
2 parents 3c607e2 + bf583dc commit 0329d02

File tree

6 files changed

+60
-54
lines changed

6 files changed

+60
-54
lines changed

.circleci/config.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,26 @@ executors:
1010
docker:
1111
- image: wunderio/silta-cicd:circleci-php8.3-node22-composer2-v1
1212

13+
# Define shared branch filters as reusable anchors.
14+
branch-filters:
15+
&ignored-branches
16+
branches:
17+
ignore:
18+
- production
19+
- main
20+
- /dependabot\/.*/
21+
# Remove the following filters from actual project configuration.
22+
- /^10\..*/
23+
- /^11\..*/
24+
1325
workflows:
1426
commit:
1527
jobs:
1628
- approval:
1729
type: approval
1830
name: approve-deployment
1931
filters:
20-
branches:
21-
ignore:
22-
- production
23-
- main
24-
- /dependabot\/.*/
32+
<<: *ignored-branches
2533

2634
- silta/drupal-validate:
2735
name: validate
@@ -48,14 +56,9 @@ workflows:
4856
- analyze
4957
- approve-deployment
5058
filters:
51-
branches:
52-
ignore:
53-
- production
54-
- main
55-
- /dependabot\/.*/
59+
<<: *ignored-branches
5660

5761
# Deploy job for feature environments.
58-
# Other jobs defined below extend this job.
5962
- silta/drupal-deploy: &deploy
6063
name: deploy
6164
executor: silta
@@ -74,14 +77,9 @@ workflows:
7477
requires:
7578
- build
7679
filters:
77-
branches:
78-
ignore:
79-
- production
80-
- main
81-
- /dependabot\/.*/
80+
<<: *ignored-branches
8281

8382
# Build job for main environment.
84-
# Extends the job defined for feature environments.
8583
- silta/drupal-build:
8684
<<: *build
8785
name: build-main

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
"composer/installers": "^2.3",
2020
"cweagans/composer-patches": "^1.7",
2121
"drupal/admin_toolbar": "^3.5",
22-
"drupal/core-composer-scaffold": "^10.3",
23-
"drupal/core-recommended": "^10.3",
22+
"drupal/core-composer-scaffold": "^10.4",
23+
"drupal/core-recommended": "^10.4",
2424
"drupal/monolog": "^3.0",
2525
"drupal/purge": "^3.6",
2626
"drupal/simplei": "^2.1",
2727
"drupal/varnish_purge": "^2.2",
28-
"drush/drush": "^12.5",
28+
"drush/drush": "^13.3",
2929
"vlucas/phpdotenv": "^5.6",
3030
"wunderio/drupal-ping": "^2.5"
3131
},
3232
"require-dev": {
33-
"drupal/core-dev": "^10.3",
33+
"drupal/core-dev": "^10.4",
3434
"wunderio/code-quality": "^3.0"
3535
},
3636
"conflict": {

drush/Commands/SiltaAliasAlterCommands.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SiltaAliasAlterCommands extends DrushCommands implements SiteAliasManagerA
3434
public function alter(InputInterface $input, AnnotationData $annotationData) {
3535
$self = $this->siteAliasManager()->getSelf();
3636

37-
$aliases_to_alter = ['@self.current', '@self.main'];
37+
$aliases_to_alter = ['@self.current', '@self.main', '@self.prod'];
3838

3939
if (in_array($self->name(), $aliases_to_alter)) {
4040
// Get branch name we're currently on.

silta/silta-main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Overrides used for main branch.
1+
# Main environment configuration.
2+
#
3+
# Override the default values of Wunder's Drupal Helm chart and silta.yml.
4+
# @see: https://github.com/wunderio/charts/blob/master/drupal/values.yaml
25

36
php:
47
cron:

silta/silta-prod.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,45 @@
1+
# Production environment configuration.
2+
#
13
# Override the default values of Wunder's Drupal Helm chart and silta.yml.
24
# @see: https://github.com/wunderio/charts/blob/master/drupal/values.yaml
35

4-
# Enable autoscaling for production.
6+
# Enable autoscaling.
57
autoscaling:
68
enabled: true
79
minReplicas: 2
810
maxReplicas: 5
911

10-
# Don't delay the production deployment process to create the reference data.
12+
# Reference data configuration.
1113
referenceData:
14+
# Don't delay the production deployment process with reference data updates.
1215
updateAfterDeployment: false
1316

14-
# Enable daily backups.
17+
# Enable backups.
1518
backup:
1619
enabled: true
1720

21+
# PHP configuration.
1822
php:
1923
cron:
2024
drupal:
21-
# In production environments, run cron every 5 minutes. Adjust as needed.
22-
schedule: '*/5 * * * *'
23-
# Reserve more resources for our PHP containers.
25+
# Run cron every 5 minutes. Adjust as needed.
26+
schedule: "*/5 * * * *"
2427
resources:
2528
requests:
2629
cpu: 200m
2730
memory: 256M
2831
limits:
2932
cpu: 500m
3033
memory: 512M
34+
# Set the preproduction environment URI.
35+
# Update this to match the production URI during the site launch.
36+
env:
37+
DRUSH_OPTIONS_URI: "https://production.drupal-project.finland.wdr.io"
38+
3139
# Don't show errors in production.
3240
errorLevel: "hide"
3341

42+
# Nginx configuration.
3443
nginx:
3544
resources:
3645
requests:
@@ -39,19 +48,21 @@ nginx:
3948
limits:
4049
cpu: 100m
4150
memory: 150M
42-
# Uncomment these lines to disable basic auth protection.
51+
52+
# Uncomment to disable basic authentication.
4353
# basicauth:
4454
# enabled: false
4555

4656
# Disable MailHog in production.
4757
mailhog:
4858
enabled: false
4959

60+
# MariaDB configuration.
5061
mariadb:
5162
master:
5263
persistence:
53-
# Database storage disk space allocation
54-
# Request assistance from ops team after changing this on existing deployment.
64+
# Database storage disk space allocation.
65+
# Request assistance from Ops team to change this on an existing deployment.
5566
size: 5Gi
5667
resources:
5768
requests:
@@ -109,20 +120,11 @@ mariadb:
109120
socket=/opt/bitnami/mariadb/tmp/mysql.sock
110121
pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid
111122
112-
# Consider enabling memcached service
123+
# Memcached service configuration.
113124
# memcached:
114125
# enabled: true
115126

116-
# Connect to an externally hosted database.
117-
# env:
118-
# DB_HOST: 'hosted.database.server.com'
119-
# DB_NAME: 'drupal-1A4G3C'
120-
# DB_USER: 'drupal'
121-
# DB_PASS: 'never store passwords'
122-
# Disable the built-in database when using an external database.
123-
#mariadb:
124-
# enabled: false
125-
127+
# Varnish service configuration.
126128
varnish:
127129
enabled: true
128130
resources:
@@ -132,6 +134,6 @@ varnish:
132134
limits:
133135
cpu: 500m
134136
memory: 1Gi
135-
# See https://varnish-cache.org/docs/6.6/users-guide/storage-backends.html
136-
# Disc allocated storage.
137-
storageBackend: 'file,/var/lib/varnish/varnish_storage.bin,512M'
137+
# Set the storage backend to file.
138+
# @see: https://varnish-cache.org/docs/6.6/users-guide/storage-backends.html
139+
storageBackend: "file,/var/lib/varnish/varnish_storage.bin,512M"

silta/silta.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
1+
# Default Silta environment configuration.
2+
#
23
# Override the default values of Wunder's Drupal Helm chart.
34
# @see: https://github.com/wunderio/charts/blob/master/drupal/values.yaml
45

@@ -11,19 +12,21 @@ php:
1112
# This will avoid running all cron jobs at the same time.
1213
schedule: '~ 0 31 2 *'
1314

14-
# Configure reference data that will be used when creating new environments.
15+
# Reference data configuration.
1516
referenceData:
16-
# The name of the environment from which reference data will be copied.
17+
# Configure reference data source for new environments.
1718
referenceEnvironment: 'main'
1819

20+
# Enable MailHog in non-production environments.
1921
mailhog:
2022
enabled: true
2123

24+
# MariaDB configuration.
2225
mariadb:
2326
master:
2427
persistence:
25-
# Specify the size of the persistent volume (PV) for database storage.
26-
# If you need to change this on an existing deployment, request assistance from the ops team.
28+
# Database storage disk space allocation.
29+
# Request assistance from Ops team to change this on an existing deployment.
2730
size: 1G
2831
resources:
2932
requests:
@@ -80,7 +83,7 @@ mariadb:
8083
socket=/opt/bitnami/mariadb/tmp/mysql.sock
8184
pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid
8285
83-
# Configure Google Filestore volume for files storage.
86+
# Configure Google Filestore for public and private files.
8487
mounts:
8588
public-files:
8689
enabled: true
@@ -93,7 +96,7 @@ mounts:
9396
mountPath: /app/private
9497
storageClassName: nfs-shared
9598

99+
# Varnish service configuration.
100+
# @see: https://github.com/wunderio/silta/blob/master/docs/silta-examples.md#using-varnish
96101
varnish:
97-
# See https://github.com/wunderio/silta/blob/master/docs/silta-examples.md#using-varnish
98-
# to configure varnish for Your site correctly.
99102
enabled: true

0 commit comments

Comments
 (0)