Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Release/1.3.0 (#51)
Browse files Browse the repository at this point in the history
* [GOVCMS-4392]: Update the deploy process. (#41)

* Update the deploy process.

- Align the deploy process with the scaffold tooling approach.

GovCMS base images now include the scaffold-tooling dependency, this installs deploy
scripts to the /app/vendor/bin directory and will allow us to align approaches and
centrally manage updates to the deployment process.

* Update script names to match naming convention.

* Update the govcms commands in lagoon.yml.

- Change to match the naming convention of `govcms-[object]-[action]`

govCMS/scaffold-tooling#33

* Ensure command files are available.

- Pre-deploy scripts run in existing containers, the atomic govcms deploy
scripts may not always be available.

* Message was causing errors in Lagoon.

* Update README.md

* Added support for config workflow env var in local/ci. (#50)

Aligned govcms-deploy process to standard scripts.

* Automated testing synchronisation (#38)

* Add the screenshots directory.
Co-authored-by: steveworley <[email protected]>

* [GOVCMS-3727]: Add validate steps to post-deploy tasks. (#49)

* Add a elevated permissions check to post rollout.
* Add theme linting to post deploy.

* 1.3.0 release.

Co-authored-by: Steve <[email protected]>
  • Loading branch information
stooit and steveworley authored Nov 17, 2020
1 parent 7033107 commit cf0685c
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ commands:

govcms-deploy:
usage: Runs deployment commands (config import, updb, cr, set up file_stage_proxy)
cmd: docker-compose exec -T cli govcms-deploy
cmd: |
docker-compose exec -T cli /app/vendor/bin/govcms-db-update && \
docker-compose exec -T cli /app/vendor/bin/govcms-config-import && \
docker-compose exec -T cli /app/vendor/bin/govcms-cache-rebuild && \
docker-compose exec -T cli /app/vendor/bin/govcms-enable_modules
drush:
usage: Run drush commands in cli container.
Expand Down
4 changes: 4 additions & 0 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ X_FRAME_OPTIONS=SameOrigin
# variable set via GraphQL api.
# @see progress https://github.com/amazeeio/lagoon/issues/1168
#GOVCMS_IMAGE_VERSION=latest

# Configuration management strategy (local/CI only).
# https://govcms.gov.au/wiki-vars#GOVCMS_DEPLOY_WORKFLOW_CONFIG
GOVCMS_DEPLOY_WORKFLOW_CONFIG=import
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/files
screenshots
tests/behat/screenshots/*
!tests/behat/screenshots/.gitkeep
10 changes: 10 additions & 0 deletions .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ tasks:
command: /app/vendor/bin/govcms-update_site_alias
service: cli
shell: bash
- run:
name: Prevent elevated permissions
command: /app/vendor/bin/govcms-validate-permissions
service: cli
shell: bash
- run:
name: Validate theme YAML files
command: /app/vendor/bin/govcms-validate-theme-yml
service: cli
shell: bash
- run:
name: Synchronise the database
command: /app/vendor/bin/govcms-db-sync
Expand Down
2 changes: 1 addition & 1 deletion .version.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version: 8
type: saas
scaffold: 1.2.0
scaffold: 1.3.0
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ x-volumes:
- ./themes:/app/web/themes/custom:${VOLUME_FLAGS:-delegated}
- ./files:/app/web/sites/default/files:delegated
- ./tests/behat/features:/app/tests/behat/features:${VOLUME_FLAGS:-delegated}
- ./tests/behat/screenshots:/app/tests/behat/screenshots:${VOLUME_FLAGS:-delegated}
- ./tests/phpunit/tests:/app/tests/phpunit/tests:${VOLUME_FLAGS:-delegated}
- ./config:/app/config

Expand All @@ -30,6 +31,7 @@ x-environment:
# Allow to override docker host used from the inside of the containers.
DOCKERHOST: ${DOCKERHOST:-}
XDEBUG_ENABLE: ${XDEBUG_ENABLE:-}
GOVCMS_DEPLOY_WORKFLOW_CONFIG: ${GOVCMS_DEPLOY_WORKFLOW_CONFIG:-import}

services:

Expand Down
1 change: 1 addition & 0 deletions tests/behat/screenshots/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit cf0685c

Please sign in to comment.