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

Commit

Permalink
Added support for config workflow env var in local/ci. (#50)
Browse files Browse the repository at this point in the history
Aligned govcms-deploy process to standard scripts.
  • Loading branch information
stooit authored Sep 21, 2020
1 parent 2d20d4c commit 7c2fce8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
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
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,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

0 comments on commit 7c2fce8

Please sign in to comment.