-
Notifications
You must be signed in to change notification settings - Fork 0
Updating Drupal example to match current standards #2
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 all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
832654f
Updating to latest version of things
nterbogt 2b22b37
Refactoring repo to match how we would really set it up. Fixing issue…
nterbogt 7e6e274
Final updates
nterbogt d4e8a23
Adding workflow for deploying drupal automatically
nterbogt 0a6d93d
Sending up a build
nterbogt 963273f
Updating based on working directory
nterbogt 9d74e7b
Around again
nterbogt 7577a64
Around again
nterbogt 36bb282
Don't forget to package
nterbogt 84498a0
Updating to use the right file paths
nterbogt 274eeb6
Make deploy do an update instead
nterbogt 2f2e8dc
Use quotes for passing command
nterbogt f9c581b
Only update Drupal when Drupal changes on main
nterbogt 3111b28
Use 'mail' as the name in docker
nterbogt 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Drupal Dev | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'drupal/**' | ||
|
|
||
| env: | ||
| SKPR_USERNAME: ${{ secrets.SKPR_QA_USERNAME }} | ||
| SKPR_PASSWORD: ${{ secrets.SKPR_QA_PASSWORD }} | ||
|
|
||
| concurrency: | ||
| group: drupal-dev | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: ./drupal | ||
| steps: | ||
| - name: ⬇️ Checkout Code | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup skpr | ||
| uses: skpr/setup-action@v1 | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
|
|
||
| - name: Get version | ||
| id: version | ||
| run: | | ||
| version=$(git rev-parse --short HEAD) | ||
| echo "::notice:: Using version $version from git describe" | ||
| echo "version=$version" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: 📦 Package | ||
| run: skpr package ${{ steps.version.outputs.version }} | ||
|
|
||
| - name: 🚀 Deploy | ||
| run: skpr deploy dev ${{ steps.version.outputs.version }} | ||
|
|
||
| - name: 🧹 Post-deploy | ||
| run: skpr exec dev "drush updb -y" | ||
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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| .idea/ | ||
| .env |
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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| app/ | ||
| bin/ | ||
| composer.lock | ||
| config-export/ | ||
| recipes/ | ||
| vendor/ | ||
| .editorconfig | ||
| .gitattributes | ||
| .php/ | ||
|
|
||
| !app/sites/default/settings.php | ||
| !app/sites/default/services.yml |
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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| ARG COMPILE_IMAGE=scratch | ||
| FROM ${COMPILE_IMAGE} as build | ||
| FROM ${COMPILE_IMAGE} AS build | ||
|
|
||
| FROM skpr/php-cli:7.4-1.x | ||
| FROM skpr/php-cli:8.3-v2-stable | ||
| ARG SKPR_VERSION | ||
| ENV SKPR_VERSION=$SKPR_VERSION | ||
| COPY --chown=skpr:skpr --from=build /data /data |
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 |
|---|---|---|
| @@ -1,12 +1,9 @@ | ||
| FROM skpr/php-cli:7.4-1.x as build | ||
| FROM skpr/php-cli:8.3-v2-stable AS build | ||
|
|
||
| ADD .skpr/package/compile/composer.json composer.json | ||
| RUN composer install --prefer-dist | ||
| ADD composer.json composer.json | ||
| RUN composer install --prefer-dist --no-progress | ||
|
|
||
| ADD .skpr/package/compile/settings.php app/sites/default/settings.php | ||
| ADD .skpr/package/compile/services.yml app/sites/default/services.yml | ||
| ADD app/sites/default/settings.php app/sites/default/settings.php | ||
| ADD app/sites/default/services.yml app/sites/default/services.yml | ||
|
|
||
| RUN mkdir /data/config-export | ||
|
|
||
| FROM skpr/php-fpm:7.4-1.x as run | ||
| COPY --chown=skpr:skpr --from=build /data /data | ||
| RUN mkdir config-export |
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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| ARG COMPILE_IMAGE=scratch | ||
| FROM ${COMPILE_IMAGE} as build | ||
| FROM ${COMPILE_IMAGE} AS build | ||
|
|
||
| FROM skpr/php-fpm:7.4-1.x | ||
| FROM skpr/php-fpm:8.3-v2-stable | ||
| ARG SKPR_VERSION | ||
| ENV SKPR_VERSION=$SKPR_VERSION | ||
| COPY --chown=skpr:skpr --from=build /data /data |
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 |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| ARG COMPILE_IMAGE=scratch | ||
| FROM ${COMPILE_IMAGE} as build | ||
| FROM ${COMPILE_IMAGE} AS build | ||
|
|
||
| FROM skpr/nginx:1.x | ||
| FROM skpr/nginx-drupal:v3-stable | ||
| COPY --chown=skpr:skpr --from=build /data /data |
File renamed without changes.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not using the gh-workflows because it needs to set the working directory. And I can't do that easily without updating those workflows.