-
Notifications
You must be signed in to change notification settings - Fork 14
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
[For dev: update with main] Issue #535: Change multidev deploy to manual only: tag based #670
Open
YesCT
wants to merge
19
commits into
main
Choose a base branch
from
535--change-multidev-deploy-to-manual-only-dev-sync-w-main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ee1f0d3
Issue #535: Use workflow_dispatch
leonel-lullabot 8801947
Issue #535: Remove workflow_dispatch
leonel-lullabot f57c15e
Issue #535: Use labels to run the Multidev deploy
leonel-lullabot 6dd5bd5
Issue #535: Fix elseif
leonel-lullabot 74fe0e3
Issue #535: Code Refactor
leonel-lullabot 778a0a0
Issue #535: Code Refactor
leonel-lullabot c251e46
Issue #535: Use pull_request
leonel-lullabot 944c0d8
Issue #535: Remove extra parentheses
leonel-lullabot 67f22e9
Merge branch 'main' into 535--change-multidev-deploy-to-manual-only
YesCT 23f9bdb
Merge remote-tracking branch 'origin' into 535--change-multidev-deplo…
leonel-lullabot 37e5e6e
Issue #535: Add opened, synchronize, and reopened
leonel-lullabot 1ebab28
Merge remote-tracking branch 'origin' into 535--change-multidev-deplo…
leonel-lullabot 1bc0f5b
Issue #535: Code Refactor
leonel-lullabot 2ff1061
Issue #535: Code Refactor
leonel-lullabot 468b177
Issue #535: Code Refactor
leonel-lullabot d87182e
Merge remote-tracking branch 'origin' into 535--change-multidev-deplo…
leonel-lullabot 722a25e
Merge tag 'v3.10.0' into 535--change-multidev-deploy-to-manual-only
leonel-lullabot ab80299
remove unlabeled. seems like a copy and paste, since this PR is about…
YesCT bdb4ce6
Merge branch 'main' into 535--change-multidev-deploy-to-manual-only-d…
YesCT 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 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,72 @@ | ||
name: "Pantheon Review Apps" | ||
|
||
on: | ||
pull_request: | ||
types: [ labeled, opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
# You will also need to add the secrets used below to Dependabot secrets | ||
# if you want this to successfully run in auto-created PRs. | ||
permissions: | ||
deployments: write | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
Drainpipe-Deploy-Pantheon-Multidev: | ||
if: contains(github.event.pull_request.labels.*.name, 'pantheon-multidev') | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
|
||
- uses: ./.github/actions/drainpipe/set-env | ||
|
||
- uses: ./.github/actions/drainpipe/setup-git | ||
with: | ||
git-name: Drainpipe Bot | ||
git-email: [email protected] | ||
|
||
- uses: ./.github/actions/drainpipe/setup-ssh | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }} | ||
|
||
- uses: ./.github/actions/drainpipe/pantheon/setup-terminus | ||
with: | ||
pantheon-token: ${{ secrets.PANTHEON_TERMINUS_TOKEN }} | ||
terminus-plugins: ${{ vars.TERMINUS_PLUGINS || secrets.TERMINUS_PLUGINS }} | ||
|
||
- uses: php-actions/composer@v6 | ||
|
||
- name: Build Project | ||
env: | ||
directory: /tmp/release | ||
run: | | ||
composer install | ||
task build | ||
task snapshot:directory directory=/tmp/release | ||
|
||
- name: Deploy Pantheon Review App | ||
uses: ./.github/actions/drainpipe/pantheon/review | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
terminus-token: ${{ secrets.PANTHEON_TERMINUS_TOKEN }} | ||
commit-message: ${{ github.sha }} | ||
site-name: ${{ vars.PANTHEON_SITE_NAME || secrets.PANTHEON_SITE_NAME }} | ||
lock-username: ${{ secrets.PANTHEON_REVIEW_USERNAME }} | ||
lock-password: ${{ secrets.PANTHEON_REVIEW_PASSWORD }} |
52 changes: 52 additions & 0 deletions
52
scaffold/github/workflows/PantheonReviewAppsManualDDEV.yml
This file contains 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,52 @@ | ||
name: "Pantheon Review Apps" | ||
|
||
on: | ||
pull_request: | ||
types: [ labeled, unlabeled, opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Drainpipe-Deploy-Pantheon-Multidev: | ||
if: contains(github.event.pull_request.labels.*.name, 'pantheon-multidev') | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ github.workspace }}/.ddev/.drainpipe-composer-cache | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- uses: ./.github/actions/drainpipe/set-env | ||
|
||
- name: Install and Start DDEV | ||
uses: ./.github/actions/drainpipe/ddev | ||
with: | ||
git-name: Drainpipe Bot | ||
git-email: [email protected] | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }} | ||
|
||
- name: Build Project | ||
env: | ||
directory: /tmp/release | ||
run: | | ||
ddev composer install | ||
ddev task build | ||
ddev task snapshot:directory directory=/tmp/release | ||
|
||
- name: Deploy Pantheon Review App | ||
uses: ./.github/actions/drainpipe/pantheon/review | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
terminus-token: ${{ secrets.PANTHEON_TERMINUS_TOKEN }} | ||
commit-message: ${{ github.sha }} | ||
site-name: ${{ vars.PANTHEON_SITE_NAME || secrets.PANTHEON_SITE_NAME }} | ||
lock-username: ${{ secrets.PANTHEON_REVIEW_USERNAME }} | ||
lock-password: ${{ secrets.PANTHEON_REVIEW_PASSWORD }} | ||
# set to "true" if you want to run the installer | ||
run-installer: ${{ secrets.PANTHEON_REVIEW_RUN_INSTALLER }} |
This file contains 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
Oops, something went wrong.
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.
From justafish
#546 (comment)