-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4.4.0
- Loading branch information
Showing
162 changed files
with
8,264 additions
and
2,519 deletions.
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
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 |
---|---|---|
|
@@ -10,41 +10,35 @@ jobs: | |
deploy: | ||
name: Deploy Artifact | ||
runs-on: ubuntu-latest | ||
env: | ||
DRUPAL_DATABASE_NAME: drupal | ||
DRUPAL_DATABASE_USERNAME: drupal | ||
DRUPAL_DATABASE_PASSWORD: drupal | ||
DRUPAL_DATABASE_HOST: mysql | ||
container: | ||
image: pookmish/drupal8ci:latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Restore Cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
vendor | ||
docroot/core | ||
docroot/libraries | ||
docroot/modules/contrib | ||
key: 4.x-20240206-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
key: 4.x-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
restore-keys: | | ||
4.x-20240206-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
4.x-20240206-${{ hashFiles('composer.json') }}- | ||
4.x-20240206- | ||
4.x-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
4.x-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}- | ||
4.x-${{ hashFiles('blt/blt.yml') }}- | ||
- name: Install SSH key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{ secrets.ACQUIA_SSH_KEY }} | ||
name: id_rsa | ||
known_hosts: ${{ secrets.KNOWN_HOSTS }} | ||
if_key_exists: fail | ||
- run: git config --system --add safe.directory '*' | ||
- name: Deploy Artifact | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
ssh-keyscan -t rsa svn-23450.prod.hosting.acquia.com >> /root/.ssh/known_hosts | ||
composer install -n | ||
blt blt:telemetry:disable --no-interaction | ||
git config --system --add safe.directory '*' && | ||
git config --global user.email "[email protected]" && | ||
git config --global user.name "Github Actions" && | ||
ssh-keyscan -t rsa svn-23450.prod.hosting.acquia.com >> /root/.ssh/known_hosts && | ||
composer install -n && | ||
blt deploy -v -n |
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
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,74 @@ | ||
# .github/workflows/release.yml | ||
# This workflow automates the release and production deploy process. | ||
# | ||
# When a release branch is merged into the main branch it: | ||
# - Creates a new tag and release | ||
# - Creates a code artifact and pushes it to Acquia for deployment | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
types: [ closed ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
if: github.event.pull_request.merged | ||
container: | ||
image: pookmish/drupal8ci:latest | ||
steps: | ||
- name: Get Next Release | ||
id: tag | ||
uses: K-Phoen/semver-release-action@master | ||
with: | ||
release_strategy: none | ||
release_branch: main | ||
tag_format: "%major%.%minor%.%patch%" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Creating new release for ${{ steps.tag.outputs.tag }} | ||
if: ${{ steps.tag.outputs.tag }} | ||
uses: ncipollo/release-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
name: ${{ steps.tag.outputs.tag }} | ||
tag: ${{ steps.tag.outputs.tag }} | ||
commit: ${{ github.sha }} | ||
generateReleaseNotes: true | ||
makeLatest: true | ||
- name: Install SSH key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{ secrets.ACQUIA_SSH_KEY }} | ||
name: id_rsa | ||
known_hosts: ${{ secrets.KNOWN_HOSTS }} | ||
if_key_exists: fail | ||
- uses: actions/checkout@v4 | ||
if: ${{ steps.tag.outputs.tag }} | ||
with: | ||
ref: ${{ github.sha }} | ||
- name: Restore Cache | ||
if: ${{ steps.tag.outputs.tag }} | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
vendor | ||
docroot/core | ||
docroot/libraries | ||
docroot/modules/contrib | ||
key: 4.x-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
restore-keys: | | ||
4.x-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
4.x-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}- | ||
4.x-${{ hashFiles('blt/blt.yml') }}- | ||
- name: Deploy Tag | ||
if: ${{ steps.tag.outputs.tag }} | ||
run: | | ||
git config --system --add safe.directory '*' && | ||
git config --global user.email "[email protected]" && | ||
git config --global user.name "Github Actions" && | ||
ssh-keyscan -t rsa svn-23450.prod.hosting.acquia.com >> /root/.ssh/known_hosts && | ||
composer install -n && | ||
blt deploy --tag=$(date +'%Y-%m-%d')"_"${{ steps.tag.outputs.tag }} --commit-msg=${{ steps.tag.outputs.tag }} --no-interaction |
This file was deleted.
Oops, something went wrong.
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.