-
Notifications
You must be signed in to change notification settings - Fork 20
Updated quant deploy script for no-database deploys. #1452
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4f86cc1
Updated deploy script and reverted to use drevops script for provisio…
richardgaunt 7a6f8a7
Updated composer.
richardgaunt fd469ab
Change drush location.
richardgaunt ab203b5
Added drush_uri.
richardgaunt 3485f6a
Move the fix drush up stack to pre-deployment.
richardgaunt 4c9c75e
Uncommented provision script.
richardgaunt e7de9bc
Revert drush change back in drevops provision script.
richardgaunt 3914052
Increased memory limit for php processes.
richardgaunt 7434970
Cleanup.
richardgaunt b74e950
Remove sync database workflow.
richardgaunt 3020b9e
Remove lagoon deploy type.
richardgaunt f8710b0
Remove deploy job from circleci.
richardgaunt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ name: Build and Push civictheme-monorepo-drupal to Quant Cloud | |
| - release/* | ||
| - hotfix/* | ||
| - feature/editorial-* | ||
| - project/quant-provision | ||
| tags: | ||
| - '*' | ||
|
|
||
|
|
@@ -37,9 +38,12 @@ jobs: | |
| quant_application: civictheme-monorepo-drupal | ||
| master_branch_override: main | ||
|
|
||
| - name: Override outputs for quant-cloud-migration branch | ||
| - name: Override outputs for special branches | ||
| id: override-outputs | ||
| run: |- | ||
| # Default: do not skip database sync | ||
| skip_db_sync="false" | ||
|
|
||
| # Override outputs for quant-cloud-migration branch to treat it as production | ||
| if [[ "${{ github.ref }}" == "refs/heads/quant-cloud-migration" ]]; then | ||
| echo "image_suffix=-latest" >> $GITHUB_OUTPUT | ||
|
|
@@ -48,6 +52,17 @@ jobs: | |
| echo "environment_name=production" >> $GITHUB_OUTPUT | ||
| echo "environment_exists=true" >> $GITHUB_OUTPUT | ||
| echo "Overriding outputs for quant-cloud-migration branch: using -latest suffix and production environment" | ||
| # Override for project/quant-provision branch to skip database sync (fresh install from static content) | ||
| elif [[ "${{ github.ref }}" == "refs/heads/project/quant-provision" ]]; then | ||
| echo "image_suffix=${{ steps.init.outputs.image_suffix }}" >> $GITHUB_OUTPUT | ||
| suffix="${{ steps.init.outputs.image_suffix }}" | ||
| clean_suffix="${suffix#-}" | ||
| echo "image_suffix_clean=$clean_suffix" >> $GITHUB_OUTPUT | ||
| echo "is_production=false" >> $GITHUB_OUTPUT | ||
| echo "environment_name=${{ steps.init.outputs.environment_name }}" >> $GITHUB_OUTPUT | ||
| echo "environment_exists=${{ steps.init.outputs.environment_exists }}" >> $GITHUB_OUTPUT | ||
| skip_db_sync="true" | ||
| echo "Overriding outputs for project/quant-provision branch: skipping database sync" | ||
| else | ||
| # Use the original action outputs | ||
| echo "image_suffix=${{ steps.init.outputs.image_suffix }}" >> $GITHUB_OUTPUT | ||
|
|
@@ -60,6 +75,8 @@ jobs: | |
| echo "environment_exists=${{ steps.init.outputs.environment_exists }}" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| echo "skip_db_sync=$skip_db_sync" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Build and push cli image | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
|
|
@@ -121,7 +138,7 @@ jobs: | |
|
|
||
| - name: Sync database from production to new environment | ||
| if: ${{ !startsWith(github.ref, 'refs/tags/') && steps.override-outputs.outputs.environment_exists == 'false' && steps.override-outputs.outputs.environment_name | ||
| != 'production' }} | ||
| != 'production' && steps.override-outputs.outputs.skip_db_sync != 'true' }} | ||
richardgaunt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| uses: quantcdn/[email protected] | ||
| with: | ||
| api_key: ${{ secrets.QUANT_API_KEY }} | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.