Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 202410 - release 3 #492

Merged
merged 130 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
6bda9ad
LP-86: Webform XLSX Export module.
Polynya May 2, 2024
d15eb9c
LP-86: Enable Webform XLSX Export module.
Polynya May 2, 2024
654e676
ci(redeploy-code-job): Github workflow job to reploy code to a review…
Polynya May 20, 2024
5962b9e
feat(ECCW-692): Replace polyfill.io (https://www.drupal.org/psa-2024-…
Polynya Jun 27, 2024
57ece5d
feat(ECCW-692): Update Composer.
Polynya Jun 27, 2024
30bc1cd
Merge pull request #460 from essexcountycouncil/task/ECCW-692
Polynya Jul 22, 2024
131f39e
feat(LP-86): Merge develop.
Polynya Jul 23, 2024
f2baae3
LP-82: LocalGov Publications module
Polynya Jul 23, 2024
24b86fc
feat(LP-71): What Links Here module.
Polynya Jul 23, 2024
ff70b34
feat(LP-82): Patch file for localgov_publications.
Polynya Jul 23, 2024
4a8cf13
feat(ECCW-509): DDEV commands, phpcs*.xml, phpunit*.xml.
Polynya Jul 26, 2024
dbb1fec
feat(LP-71: Preview Link multiple pages
Polynya Jul 30, 2024
c2169b4
Merge pull request #450 from essexcountycouncil/task/redeploy-code-job
Polynya Aug 8, 2024
f069ee0
Merge branch 'develop' of github.com:essexcountycouncil/essex-gov-uk-…
Polynya Aug 8, 2024
53f5a79
Merge branch 'main' of github.com:essexcountycouncil/essex-gov-uk-dru…
Polynya Aug 8, 2024
987620d
ECCW-693: Catch the error code when phpcs and phpcbf report coding st…
Polynya Aug 8, 2024
c916b18
Merge pull request #466 from essexcountycouncil/feature/LP-74
Polynya Aug 9, 2024
9dfaa3d
ECCW-693: New standards xml for phpcbf so it doesn't make changes in …
Polynya Aug 9, 2024
fe6d7ab
Merge pull request #447 from essexcountycouncil/feature/LP-86
Polynya Aug 9, 2024
df3e2f9
feat(LP-71): Resolve merge conflicts.
Polynya Aug 9, 2024
5ce91da
Merge pull request #463 from essexcountycouncil/feature/LP-71
Polynya Aug 9, 2024
643e06d
feat(LP-82): Resolve merge conflicts.
Polynya Aug 9, 2024
873599a
Merge pull request #464 from essexcountycouncil/feature/LP-82
Polynya Aug 9, 2024
a155eb5
Merge branch 'develop' of github.com:essexcountycouncil/essex-gov-uk-…
Polynya Aug 9, 2024
e51d0ce
feat(ECCW-693): New DDEV command phpunit-with-deprecations.
Polynya Aug 9, 2024
06947b0
Remove ecc subsites menu link content update as it breaks revisioning
anthonylindsay Aug 14, 2024
bccd9fb
Downgrade mariaDB to 10.3 for docksal for compatibility with prod
anthonylindsay Aug 14, 2024
6e13749
Merge pull request #467 from essexcountycouncil/202408_revisions_LP_163
Polynya Aug 14, 2024
7e327ab
Add top tasks field to subsite overview pages content type. LP-120.
anthonylindsay Aug 15, 2024
c91d650
Added antibot to composer
anthonylindsay Aug 16, 2024
6ecf9cb
Add honeypot with javascript patch to composer.
anthonylindsay Aug 16, 2024
99c6946
Update composer.lock.
anthonylindsay Aug 16, 2024
0dd2d32
Enable antibot and honeypot
anthonylindsay Aug 16, 2024
84ab9b0
Configure honeypot
anthonylindsay Aug 16, 2024
e42f9f5
Configure Antibot.
anthonylindsay Aug 16, 2024
4a68d6a
feat(ECCW-696): LP-146: Install new version of autosave module
Polynya Aug 16, 2024
0b3768f
feat(ECCW-696): LP-146: Install new version of autosave module
Polynya Aug 16, 2024
ebc3cb3
Fix merge conflict.
Polynya Aug 19, 2024
ae14b16
Merge pull request #469 from essexcountycouncil/202408_formprotection…
Polynya Aug 19, 2024
20e2fe8
Merge pull request #468 from essexcountycouncil/202408_toptasks_lp_120
Polynya Aug 19, 2024
9d78302
LP-101: Update ecc_theme to 1.1.7 for X icon.
Polynya Aug 19, 2024
bb39841
Add entity_embed to composer
anthonylindsay Aug 19, 2024
7b0e48d
Update composer lock for entity embed
anthonylindsay Aug 19, 2024
2ba45dd
Enable embed, entity_embed
anthonylindsay Aug 19, 2024
ddf76e2
Create poll embed button and configure entity embed
anthonylindsay Aug 19, 2024
02372a0
Add poll embed button to wysiwyg
anthonylindsay Aug 19, 2024
1c02c42
Add replicate, replicate UI to composer
anthonylindsay Aug 19, 2024
a905608
Update composer lock
anthonylindsay Aug 19, 2024
950cc2d
Enable replicate, replicate ui, configure replicate to work with node…
anthonylindsay Aug 19, 2024
b5ca36e
Allow author, editor to use Replicate
anthonylindsay Aug 19, 2024
7924c8b
Merge branch 'develop' into 202408_replicate_LP_104
anthonylindsay Aug 19, 2024
0676857
Merge branch 'develop' into 202408_entity_embed_LP_202
anthonylindsay Aug 19, 2024
5dd697c
Update composer.lock.
anthonylindsay Aug 19, 2024
1c80c6d
Udpate composer lock
anthonylindsay Aug 19, 2024
e9da0e8
Merge pull request #471 from essexcountycouncil/feature/LP-101
Polynya Aug 20, 2024
40276cd
Config export with a few lines rearranged.
Polynya Aug 22, 2024
240dd2e
feat(LP-90): Enable modules localgov_workflows_notifications, symfony…
Polynya Aug 22, 2024
4bb1f98
feat(LP-90): Content by owner View
Polynya Aug 22, 2024
5ae8c35
feat(LP-90): Drupal core 10.3. Views Core Entity Reference module.
Polynya Aug 23, 2024
9791e81
feat(LP-90): ECC Gin module for styling tweak.
Polynya Aug 23, 2024
b212acd
ci: Do not gitignore web/modules/custom folder.
Polynya Aug 27, 2024
e2f41e7
fix(DFT040-196): Update Content Ownership module.
Polynya Aug 30, 2024
bad74ec
fix(LP-106): Set guide page to inherit the content owner from the ove…
Polynya Aug 30, 2024
6bd26f0
Merge pull request #474 from essexcountycouncil/202408_replicate_LP_104
Polynya Sep 2, 2024
a1c7a5b
Merge develop. Security update for webform_xlsx_export
Polynya Sep 2, 2024
5fdb0ea
Merge pull request #472 from essexcountycouncil/202408_entity_embed_L…
Polynya Sep 2, 2024
11bab60
Merge pull request #475 from essexcountycouncil/task/gitignore-not-mo…
Polynya Sep 2, 2024
33c61ed
Merge pull request #465 from essexcountycouncil/feature/ECCW-693
Polynya Sep 2, 2024
e83c0da
Merge develop.
Polynya Sep 3, 2024
7d37780
feat(LP-110): WIP publish child pages with parent.
Polynya Sep 5, 2024
9d74efc
ci(): Coding standards.
Polynya Sep 5, 2024
5c25b8a
feat(LP-110): Use boolean field for publishing child pages with parent.
Polynya Sep 5, 2024
88e2432
feat(LP-110): Simplify form alter.
Polynya Sep 5, 2024
edcad12
feat(LP-110): New ecc_parents.parent service for parent/child nodes.
Polynya Sep 6, 2024
a53e43c
feat(LP-110): Alter parents view to filter by parents on all content …
Polynya Sep 6, 2024
42f296e
Added fields to directory pages
anthonylindsay Sep 9, 2024
b0d370a
Use office hours dev to get repaired operations buttons.
anthonylindsay Sep 9, 2024
5cd7d97
Update gin to 3.0.0-rc13
anthonylindsay Sep 9, 2024
96f2b6f
Ignore custom ddev domain setting
anthonylindsay Sep 10, 2024
bae0c39
feat(LP-108): Views field for ECC parents.
Polynya Sep 10, 2024
facb763
feat(LP-108): Move ecc_parents module to separate Github repo.
Polynya Sep 10, 2024
b94c972
ECCW-699: Introduce category taxonony to help manage media files
Sep 10, 2024
f789818
Show field labels for directory pages
anthonylindsay Sep 11, 2024
982f8bf
ECCW-699: Allow unlimited terms added to field and allow editors to e…
Sep 11, 2024
c359d81
Merge pull request #480 from essexcountycouncil/feature/ECCW-699
Polynya Sep 11, 2024
de6ff84
chore(ECCW-696): Update Config Ignore. Enable Stage File Proxy on DDEV.
Polynya Sep 11, 2024
87f8321
chore(ECCW-696): Update Drupal core, use stable tag for ecc_parents
Polynya Sep 12, 2024
265ab67
chore(ECCW-696): Reinstall config_filter to allow config install to run
Polynya Sep 12, 2024
8aa921a
Add age and how to access fields to directory organisations and chang…
anthonylindsay Sep 12, 2024
4ac7e02
Disable venue notes on directory organisations and accessibility note…
anthonylindsay Sep 12, 2024
9442d73
Merge pull request #479 from essexcountycouncil/202409_dropbuttons_LP…
Polynya Sep 16, 2024
3f134cb
Merge pull request #481 from essexcountycouncil/202409_directories_LP…
Polynya Sep 16, 2024
d8c65a3
chore(): Drupal core update.
Polynya Sep 16, 2024
4264860
ci(): Azure-cli is no longer based on Alpine so switch apk to apt-get
Polynya Sep 16, 2024
356ab43
ci(): Revert apt-get to apk for docker image
Polynya Sep 16, 2024
98b689a
ci(): Azure-cli has tdnf not apt.
Polynya Sep 17, 2024
e80a05c
Merge pull request #483 from essexcountycouncil/chore/drupal-10.3.5
Polynya Sep 17, 2024
9aedef5
ci(): Add -y to tdnf.
Polynya Sep 17, 2024
ecb8e29
Merge pull request #484 from essexcountycouncil/ci/tdnf
Polynya Sep 17, 2024
b14b76c
chore(): Merge develop and fix composer.lock conflict.
Polynya Sep 19, 2024
8581352
feat(LP-90): Prevent deletion of a service contact if they own pages.
Polynya Sep 19, 2024
48a4bb5
feat(LP-106): Run PHPUnit tests in pipeline
Polynya Sep 20, 2024
8e5e677
feat(LP-106): Remove unit tests from pipeline until fixed.
Polynya Sep 20, 2024
5d98249
feat(LP-90): Remove line from patch.
Polynya Sep 20, 2024
5963b3f
feat(LP-146): Merge Autosave update.
Polynya Sep 20, 2024
e78afa4
Merge pull request #485 from essexcountycouncil/feature/release-2-qa
Polynya Sep 20, 2024
90aa847
Merge pull request #478 from essexcountycouncil/release/202408-release-2
Polynya Sep 23, 2024
eb3da49
feat(LP-106): Service Contacts column on Content By Owner view
Polynya Sep 24, 2024
c47df04
fix(LP-106): Update ecc_parents. Remove security-advisories until Dru…
Polynya Sep 25, 2024
dba3609
fix(LP-110): Hide pub/unpub field on guide page.
Polynya Sep 25, 2024
dda560a
fix(LP-146): Update patch for Autosave Form
Polynya Sep 25, 2024
0d18d79
Merge pull request #486 from essexcountycouncil/release/release-2-uat
Polynya Sep 30, 2024
c305787
ci(): Change container name to portalrb
Polynya Oct 2, 2024
e08b67d
Merge pull request #487 from essexcountycouncil/release/2024-10-02
Polynya Oct 2, 2024
47fc7e1
chore(): Composer ignore
Polynya Oct 2, 2024
b1d06cc
Merge branch 'release/release-2-uat' of github.com:essexcountycouncil…
Polynya Oct 2, 2024
9d2c042
feat(ECCW-708): Export config from Prod for removal of Content Owners…
Polynya Oct 3, 2024
a762240
Merge pull request #488 from essexcountycouncil/release/2024-10-02
Polynya Oct 3, 2024
064d02c
Merge branch 'develop' of github.com:essexcountycouncil/essex-gov-uk-…
Polynya Oct 3, 2024
1be81f3
feat(LP-152): Use Facets Form for directory channels.
Polynya Oct 3, 2024
92f3bc8
chore(): Update Diff.
Polynya Oct 4, 2024
80e420c
feat(LP-152): LGD Directories patch for facets order. Reorder facets …
Polynya Oct 4, 2024
35c2f88
feat(LP-152): Facets form patch to update redirect URL when all choic…
Oct 8, 2024
5f388be
feat(LP-152): Apply accordion patch for use within forms, also update…
Oct 8, 2024
83e94b9
feat(LP-152): Update security advisory for phpoffice/phpspreadsheet
Oct 8, 2024
724e66c
feat(LP-152): Update ecc_theme
Oct 9, 2024
a204165
feat(LP-152): Update for theme and amend facets form block to include…
Oct 11, 2024
b286524
feat(LP-152): Security updates
Oct 11, 2024
957235a
feat(LP-152): Use ecc_theme 1.1.2. Configure blocks.
Polynya Oct 14, 2024
fe8d73f
Merge pull request #490 from essexcountycouncil/feature/LP-152
Polynya Oct 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .ddev/commands/web/phpcbf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

## Description: Run phpcbf to automatically fix some phpcs errors.
## Usage: phpcbf
## Example: "ddev phpcbf"

{
/var/www/html/bin/phpcbf --standard=phpcbf-ecc.xml $*
} || {
echo Fix the remaining issues manually.
}
11 changes: 11 additions & 0 deletions .ddev/commands/web/phpcs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

## Description: Run phpcs in the web container.
## Usage: phpcs
## Example: "ddev phpcs"

{
/var/www/html/bin/phpcs --standard=phpcs-ecc.xml $*
} || {
echo Please fix these issues.
}
8 changes: 8 additions & 0 deletions .ddev/commands/web/phpunit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

## Description: Run phpunit in the web container to run phpunit tests.
## Usage: phpunit
## Example: "ddev phpunit"

export SYMFONY_DEPRECATIONS_HELPER=weak
/var/www/html/bin/phpunit -c /var/www/html/phpunit-ecc.xml --verbose $*
8 changes: 8 additions & 0 deletions .ddev/commands/web/phpunit-lgd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

## Description: Run phpunit in the web container to run phpunit tests on LGD.
## Usage: phpunit-lgd
## Example: "ddev phpunit-lgd"

/var/www/html/bin/phpunit -c /var/www/html/phpunit-lgd.xml $*

7 changes: 7 additions & 0 deletions .ddev/commands/web/phpunit-with-deprecations
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

## Description: Run phpunit in the web container to run phpunit tests.
## Usage: phpunit-with-deprecations
## Example: "ddev phpunit-with-deprecations"

/var/www/html/bin/phpunit -c /var/www/html/phpunit-ecc.xml $*
2 changes: 1 addition & 1 deletion .docksal/docksal.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DOCKSAL_STACK=default

# Match Platformsh stack
CLI_IMAGE='docksal/cli:php8.1-3'
DB_IMAGE='docksal/mariadb:10.4'
DB_IMAGE='docksal/mariadb:10.3'
NGINX_VHOST_PRESET=drupal

# Docksal configuration.
Expand Down
118 changes: 118 additions & 0 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,124 @@ jobs:
Rebuilt the Review App
https://portal---${{ steps.deploy.outputs.env_slug }}.livelyforest-609fad32.uksouth.azurecontainerapps.io/


redeploy_code_reviewapp:
name: Redeploy code to Review App
if: github.event.issue.pull_request && contains(github.event.comment.body, '/redeploy code')
runs-on: ubuntu-latest
steps:
- name: Add comment for start of job
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
Redeploy code to the Review App (no changes to the database)

- name: Get PR branch
uses: xt0rted/pull-request-comment-branch@v1
id: comment-branch

- name: Log in to Azure
uses: azure/login@v1
with:
creds: '{"clientId":"${{ vars.ARM_CLIENT_ID }}","clientSecret":"${{ secrets.ARM_CLIENT_SECRET }}","subscriptionId":"${{ vars.ARM_SUBSCRIPTION_ID }}","tenantId":"${{ vars.ARM_TENANT_ID }}"}'

- name: Deactivate revisions
id: deactivate
env:
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
REF_NAME: ${{ steps.comment-branch.outputs.head_ref }}
shell: bash
run: |
ENV_SLUG=$(echo "${REF_NAME}" | sed -e 's:[^[:alpha:]|^[:digit:]]:-:g' | sed -e 's/\(.*\)/\L\1/')
jq -n --argjson revisions $(az containerapp revision list -n portal -g rg-ecc-portal-uks-dev --subscription "Essex County Council (Portal)" | jq -c '[.[].name]') --argjson ingress $(az containerapp ingress show -n portal -g rg-ecc-portal-uks-dev --subscription "Essex County Council (Portal)" | jq -c ".traffic | [.[].revisionName]") '{"revisions": $revisions, "ingress": $ingress} | .revisions-.ingress | .[]' | tr -d '"' | while read revision
do
echo Deactivating "$revision"
az containerapp revision deactivate --revision $revision -g rg-ecc-portal-uks-dev --subscription "Essex County Council (Portal)"
done

- name: Deploy review app
id: deploy
env:
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
REF_NAME: ${{ steps.comment-branch.outputs.head_ref }}
run: |
CI_COMMIT_BRANCH="$REF_NAME"
ENV_SLUG=$(echo "${REF_NAME}" | sed -e 's:[^[:alpha:]|^[:digit:]]:-:g' | sed -e 's/\(.*\)/\L\1/')
tag=":$ENV_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
echo "Creating new revision of Container App"
cat > revision.yml <<EOF
properties:
template:
revisionSuffix: gh${GITHUB_RUN_ID}
scale:
minReplicas: 0
maxReplicas: 1
rules:
- name: "http-rule"
http:
metadata:
concurrentRequests: 40
containers:
- image: acreccuksdev.azurecr.io/portal-nginx-drupal$tag
name: nginx
resources:
cpu: 0.25
memory: 0.5Gi
volumeMounts:
- mountPath: /drupal/web/sites/default/files
volumeName: filesharevol
env:
- name: X_ROBOTS_TAG
value: noindex
probes:
- type: liveness
httpGet:
path: "/dd822309-ae33-4e29-addf-869b07453a06"
port: 80
initialDelaySeconds: 5
periodSeconds: 3
- image: acreccuksdev.azurecr.io/portal-drupal-fpm$tag
name: drupal
resources:
cpu: 0.75
memory: 1.5Gi
volumeMounts:
- mountPath: /drupal/web/sites/default/files
volumeName: filesharevol
- mountPath: /drupal/data/default/private
volumeName: privsharevol
env:
- name: MYSQL_HOST
value: mariadb-ecc-uks-dev.mariadb.database.azure.com
- name: MYSQL_USER
value: mariadb-root
- name: MYSQL_DATABASE
value: drupal_ci_${ENV_SLUG}
- name: MYSQL_PASSWORD
secretRef: mysql-password
- name: OPENID_CONNECT_PARAMS
secretRef: openid-connect-params
probes:
- type: liveness
tcpSocket:
port: 9000
initialDelaySeconds: 5
periodSeconds: 3
EOF
az containerapp revision copy -n portal -g rg-ecc-portal-uks-dev --yaml revision.yml --subscription "Essex County Council (Portal)" | tee revision.json
az containerapp revision label add --no-prompt -g rg-ecc-portal-uks-dev -n portal --label ${ENV_SLUG} --revision portal--gh${GITHUB_RUN_ID} --subscription "Essex County Council (Portal)"
echo "env_slug=${ENV_SLUG}" >> "$GITHUB_OUTPUT"

- name: Add comment
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
Redeployed code to the Review App (no changes to the database)
https://portal---${{ steps.deploy.outputs.env_slug }}.livelyforest-609fad32.uksouth.azurecontainerapps.io/

stop_reviewapp:
name: Stop Review App
if: github.event.issue.pull_request && contains(github.event.comment.body, '/stop')
Expand Down
15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
# Ignore web folder except custom modules.
/web/*
!/web/modules/
/web/modules/contrib/
/web/modules/README.txt
!/web/modules/custom/
!/web/modules/custom/*

# Ignore directories generated by Composer
/bin
/drush/contrib/
/vendor/
/web/

# Ignore scaffold files
/.editorconfig
/.gitattributes
/web

# Ignore IDE files
.idea/
Expand Down Expand Up @@ -36,4 +42,7 @@ certs/
/private

# Ignore config which may contain secrets
.ddev/.env
.ddev/.env

# Ignore custom ddev domain
.ddev/nginx_full/essexgov.conf
16 changes: 8 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Test:Required:
- ''
script:
- composer install && composer tests-required
allow_failure: true
allow_failure: false

build-and-push-images:
stage: build
Expand Down Expand Up @@ -184,7 +184,7 @@ drush-deploy-dev:
stage: development-postdeploy
needs: ["deploy-to-dev"]
before_script:
- apk add socat
- tdnf -y install socat
- az extension add --name containerapp
- az login --service-principal -u${ARM_CLIENT_ID} -p${ARM_CLIENT_SECRET} -t${ARM_TENANT_ID}
- az account set --subscription "Essex County Council (Portal)"
Expand Down Expand Up @@ -293,7 +293,7 @@ drush-deploy-preprod:
stage: preproduction-postdeploy
needs: ["deploy-to-preprod"]
before_script:
- apk add socat
- tdnf -y install socat
- az extension add --name containerapp
- az login --service-principal -u${ARM_CLIENT_ID} -p${ARM_CLIENT_SECRET} -t${ARM_TENANT_ID}
- az account set --subscription "Essex County Council (Portal)"
Expand Down Expand Up @@ -384,7 +384,7 @@ deploy-to-prod:
initialDelaySeconds: 5
periodSeconds: 3
EOF
- az containerapp revision copy --name portal --resource-group rg-ecc-portal-uks-prod --yaml revision.yml --subscription "Essex County Council (Portal)"
- az containerapp revision copy --name portalrb --resource-group rg-ecc-portal-uks-prod --yaml revision.yml --subscription "Essex County Council (Portal)"
- az containerapp revision copy --name portal-redirect --resource-group rg-ecc-portal-redirect-uks-prod --image acreccuksprod.azurecr.io/portal-nginx-redirect:${CI_COMMIT_REF_SLUG} --subscription "Essex County Council (Portal)"
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
Expand All @@ -397,12 +397,12 @@ drush-deploy-prod:
stage: production-postdeploy
needs: ["deploy-to-prod"]
before_script:
- apk add socat
- tdnf -y install socat
- az extension add --name containerapp
- az login --service-principal -u${ARM_CLIENT_ID} -p${ARM_CLIENT_SECRET} -t${ARM_TENANT_ID}
- az account set --subscription "Essex County Council (Portal)"
script:
- timeout 1200 socat EXEC:'az containerapp exec --command /drupal/deploy.sh --name portal --container drupal --resource-group rg-ecc-portal-uks-prod',pty,setsid,ctty STDIO,ignoreeof
- timeout 1200 socat EXEC:'az containerapp exec --command /drupal/deploy.sh --name portalrb --container drupal --resource-group rg-ecc-portal-uks-prod',pty,setsid,ctty STDIO,ignoreeof
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
when: manual
Expand Down Expand Up @@ -504,12 +504,12 @@ drush-deploy-straight-to-prod:
stage: production-postdeploy
needs: ["deploy-straight-to-prod"]
before_script:
- apk add socat
- tdnf -y install socat
- az extension add --name containerapp
- az login --service-principal -u${ARM_CLIENT_ID} -p${ARM_CLIENT_SECRET} -t${ARM_TENANT_ID}
- az account set --subscription "Essex County Council (Portal)"
script:
- timeout 1200 socat EXEC:'az containerapp exec --command /drupal/deploy.sh --name portal --container drupal --resource-group rg-ecc-portal-uks-prod',pty,setsid,ctty STDIO,ignoreeof
- timeout 1200 socat EXEC:'az containerapp exec --command /drupal/deploy.sh --name portalrb --container drupal --resource-group rg-ecc-portal-uks-prod',pty,setsid,ctty STDIO,ignoreeof
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
when: manual
Expand Down
Loading
Loading