Skip to content

Commit ea2dcdc

Browse files
Merge pull request #542 from UN-OCHA/develop
OPS-7743, OPS-7850, OPS-7907 Security update, config-split and seckit.
2 parents 0a578be + a3a23ef commit ea2dcdc

25 files changed

+1935
-556
lines changed

.github/workflows/docker-build-image.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,22 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16+
- name: Configure AWS Credentials
17+
id: aws
18+
uses: aws-actions/configure-aws-credentials@v1
19+
with:
20+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
21+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
22+
aws-region: us-east-1
23+
1624
- name: Checkout code
25+
id: checkout
1726
uses: actions/checkout@v1
27+
1828
- name: Determine environment type
19-
uses: docker://unocha/actions:determine-environment-main
29+
id: env
30+
uses: docker://ghcr.io/un-ocha/actions:determine-environment-main
31+
2032
- name: Build docker image
2133
env:
2234
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
@@ -36,8 +48,9 @@ jobs:
3648
--build-arg GITHUB_REF=${GITHUB_REF} \
3749
. --file docker/Dockerfile --tag unocha/iasc-site:${DOCKER_TAG}
3850
docker push unocha/iasc-site:${DOCKER_TAG}
51+
3952
- name: Flowdock Notify
40-
uses: docker://unocha/actions:flowdock-notify-main
53+
uses: docker://ghcr.io/un-ocha/actions:flowdock-notify-main
4154
env:
4255
FLOWDOCK_TOKEN: ${{ secrets.FLOWDOCK_TOKEN }}
4356
FLOWDOCK_ICON: 'package'

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ services:
2323
# - test -n "${SSH_AGENT_PID}" && ssh-agent -k
2424

2525
before_script:
26+
# Install the AWS CLI and login to the ECR. Credentials are secrets set via the UI.
27+
- if ! [ -x "$(command -v aws)" ]; then curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" ; unzip awscliv2.zip ; sudo ./aws/install ; fi
28+
- aws ecr-public get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin public.ecr.aws/unocha
29+
2630
# Composer.
2731
- sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
2832
- source $HOME/.bashrc

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ The html directory is the document root. The vendor directories contains librari
1212
- Run `composer install`. This will download Drupal core, contributed modules, contributed themes and libraries.
1313
- Deploy the html and vendor directories to the web server(s).
1414

15+
For local development, add this line to settings.local.php:
16+
`$config['config_split.config_split.config_dev']['status'] = TRUE;`
17+
After importing a fresh database, run `drush cim` to enable devel, database log
18+
and stage_file_proxy.
19+
1520
### Initialisation
1621

1722
Use drush to bootstrap your site and import the initial configuration from the config subdirectory.

composer.json

+8-20
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"drupal/colors": "1.x-dev",
3030
"drupal/components": "^2.4",
3131
"drupal/conditional_fields": "^4.0@alpha",
32-
"drupal/config_split": "^1.4",
32+
"drupal/config_split": "^2.0.0-beta4",
3333
"drupal/core-composer-scaffold": "^9.2.6",
3434
"drupal/core-project-message": "^9.2.6",
3535
"drupal/core-recommended": "^9.2.6",
@@ -67,11 +67,11 @@
6767
"drupal/search_api": "^1.14",
6868
"drupal/search_api_attachments": "^1.0@beta",
6969
"drupal/search_api_solr": "^4.1",
70+
"drupal/seckit": "^2.0",
7071
"drupal/select2": "^1.6",
7172
"drupal/select_or_other": "^4.0",
7273
"drupal/social_auth_hid": "^2.2",
7374
"drupal/spamspan": "^1.2",
74-
"drupal/stage_file_proxy": "^1.0",
7575
"drupal/tablefield": "^2.1",
7676
"drupal/token": "^1.5",
7777
"drupal/token_filter": "^1.2",
@@ -83,6 +83,7 @@
8383
"npm-asset/select2": "^4.0",
8484
"oomphinc/composer-installers-extender": "^2.0",
8585
"phpoffice/phpspreadsheet": "^1.16",
86+
"symfony/flex": "^1.17",
8687
"unocha/common_design": "^5.0.0",
8788
"unocha/ocha_integrations": "^1.0",
8889
"unocha/un_date": "^1.0.1",
@@ -92,9 +93,13 @@
9293
},
9394
"require-dev": {
9495
"drupal/coder": "^8.3",
96+
"drupal/config_filter": "^2.2",
9597
"drupal/core-dev": "^9.2.6",
98+
"drupal/devel": "^4.1",
99+
"drupal/stage_file_proxy": "^1.1",
96100
"drupal/upgrade_rector": "1.x-dev@dev",
97101
"drupal/upgrade_status": "^3.8",
102+
"kint-php/kint": "^3.3",
98103
"phpmd/phpmd": "^2.6",
99104
"weitzman/drupal-test-traits": "^1.5",
100105
"weitzman/logintrait": "^1.1"
@@ -105,27 +110,10 @@
105110
"minimum-stability": "dev",
106111
"prefer-stable": true,
107112
"config": {
108-
"bin-dir": "vendor/bin/",
113+
"bin-dir": "vendor/bin/",
109114
"sort-packages": true
110115
},
111-
"autoload": {
112-
"classmap": [
113-
"scripts/composer/ScriptHandler.php"
114-
]
115-
},
116116
"scripts": {
117-
"pre-install-cmd": [
118-
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
119-
],
120-
"pre-update-cmd": [
121-
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
122-
],
123-
"post-install-cmd": [
124-
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
125-
],
126-
"post-update-cmd": [
127-
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
128-
],
129117
"sass-prepare": "cd html/themes/custom/iasc_common_design && npm install",
130118
"sass-build": "cd html/themes/custom/iasc_common_design && ./node_modules/.bin/sass sass:build",
131119
"sass-cleanup": "cd html/themes/custom/iasc_common_design && rm -rf ./node_modules",

0 commit comments

Comments
 (0)