-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d9ddb4
commit 7cc4840
Showing
16 changed files
with
209 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ commands: | |
cmd: | | ||
ahoy clean | ||
(docker network prune -f > /dev/null && docker network inspect amazeeio-network > /dev/null || docker network create amazeeio-network) | ||
ahoy up -- --build --force-recreate | ||
docker cp -L . "$(docker-compose ps -q cli)":/app/ || true | ||
ahoy up -- --build --force-recreate | ||
docker cp -L . "$(docker compose ps -q cli)":/app/ || true | ||
ahoy install-site | ||
ahoy info 1 | ||
|
@@ -21,7 +21,7 @@ commands: | |
echo " Site local URL : " $(ahoy cli echo \$LOCALDEV_URL) | ||
echo " Path to project : " $(ahoy cli echo /app) | ||
echo " Path to web root : " $(ahoy cli echo /app/build/web) | ||
echo " DB port on host : " $(docker port $(docker-compose ps -q mariadb) 3306 | cut -d : -f 2) | ||
echo " DB port on host : " $(docker port $(docker compose ps -q mariadb) 3306 | cut -d : -f 2) | ||
echo " Xdebug : " $(ahoy cli php -v|grep -q Xdebug && echo "Enabled" || echo "Disabled") | ||
if [ -n "$1" ]; then | ||
echo " One-time login : " $(ahoy login -- --no-browser) | ||
|
@@ -31,7 +31,7 @@ commands: | |
usage: Open DB in Sequel Ace. | ||
cmd: | | ||
uname -a | grep -i -q darwin && mdfind -name 'Sequel Ace'|grep -q "Ace" \ | ||
&& HOST_DB_PORT="$(docker port $(docker-compose ps -q mariadb 2>/dev/null) 3306 2>/dev/null | cut -d : -f 2)" \ | ||
&& HOST_DB_PORT="$(docker port $(docker compose ps -q mariadb 2>/dev/null) 3306 2>/dev/null | cut -d : -f 2)" \ | ||
&& open "mysql://drupal:[email protected]:${HOST_DB_PORT}/drupal" -a "Sequel Ace" \ | ||
|| echo "Not a supported OS or Sequel Ace is not installed." | ||
|
@@ -41,43 +41,43 @@ commands: | |
|
||
up: | ||
usage: Build and start Docker containers. | ||
cmd: docker-compose up -d "$@" && if docker-compose logs | grep -q "\[Error\]"; then exit 1; fi | ||
cmd: docker compose up -d "$@" && if docker compose logs | grep -q "\[Error\]"; then exit 1; fi | ||
|
||
down: | ||
usage: Stop Docker containers and remove container, images, volumes and networks. | ||
cmd: if [ -f "docker-compose.yml" ]; then docker-compose down --volumes > /dev/null 2>&1; fi | ||
cmd: if [ -f "docker-compose.yml" ]; then docker compose down --volumes > /dev/null 2>&1; fi | ||
|
||
start: | ||
usage: Start existing Docker containers. | ||
cmd: docker-compose start "$@" | ||
cmd: docker compose start "$@" | ||
|
||
stop: | ||
usage: Stop running Docker containers. | ||
cmd: docker-compose stop "$@" | ||
cmd: docker compose stop "$@" | ||
|
||
restart: | ||
usage: Restart all stopped and running Docker containers. | ||
cmd: docker-compose restart | ||
cmd: docker compose restart | ||
|
||
logs: | ||
usage: Show Docker logs. | ||
cmd: docker-compose logs "$@" | ||
cmd: docker compose logs "$@" | ||
|
||
pull: | ||
usage: Pull latest docker images. | ||
cmd: if [ ! -z "$(docker image ls -q)" ]; then docker image ls --format \"{{.Repository}}:{{.Tag}}\" | grep uselagoon/ | grep -v none | xargs -n1 docker pull | cat; fi | ||
|
||
cli: | ||
usage: Start a shell inside CLI container or run a command. | ||
cmd: if \[ "${#}" -ne 0 \]; then docker-compose exec -e DRUPAL_VERSION=${DRUPAL_VERSION:-10} -T cli bash -c "$*"; else docker-compose exec cli bash; fi | ||
cmd: if \[ "${#}" -ne 0 \]; then docker compose exec -e DRUPAL_VERSION=${DRUPAL_VERSION:-10} -T cli bash -c "$*"; else docker compose exec cli bash; fi | ||
|
||
composer: | ||
usage: Run Composer commands in the CLI service container. | ||
cmd: docker-compose exec -T cli composer "$@" | ||
cmd: docker compose exec -T cli composer "$@" | ||
|
||
drush: | ||
usage: Run Drush commands in the CLI service container. | ||
cmd: docker-compose exec -T cli bash -c "drush -r /app/build/web -l \${LOCALDEV_URL} $*" | ||
cmd: docker compose exec -T cli bash -c "drush -r /app/build/web -l \${LOCALDEV_URL} $*" | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Application commands. | ||
|
@@ -94,7 +94,7 @@ commands: | |
clean: | ||
usage: Remove containers and all build files. | ||
cmd: | | ||
ahoy down | ||
ahoy down || true | ||
sleep 5 | ||
chmod -Rf 777 build 2>&1 > /dev/null || true | ||
rm -rf \ | ||
|
@@ -110,7 +110,9 @@ commands: | |
lint: | ||
usage: Lint code. | ||
cmd: | | ||
ahoy cli "cd /app/build && ./vendor/bin/phpcs --standard=../phpcs.xml" \ | ||
ahoy cli "cp -Rf phpcs.xml phpstan.neon build > /dev/null" \ | ||
&& ahoy cli "cd /app/build && ./vendor/bin/phpcs" \ | ||
&& ahoy cli "cd /app/build && ./vendor/bin/phpstan" \ | ||
&& ahoy cli "cd /app/build && ./vendor/bin/drupal-check --drupal-root=web ../src && cd .." \ | ||
&& ahoy cli "cd /app/build && ./vendor/bin/rector process ../src --dry-run && cd .." | ||
|
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
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# Ignore files for distribution archives. | ||
.circleci export-ignore | ||
.ahoy.yml export-ignore | ||
.editorconfig export-ignore | ||
.env export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
behat.yml export-ignore | ||
default.docker-compose.override.yml export-ignore | ||
docker-compose.yml export-ignore | ||
phpcs.xml export-ignore | ||
tests export-ignore | ||
/.circleci export-ignore | ||
/.ahoy.yml export-ignore | ||
/.editorconfig export-ignore | ||
/.env export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/behat.yml export-ignore | ||
/default.docker-compose.override.yml export-ignore | ||
/docker-compose.yml export-ignore | ||
/phpcs.xml export-ignore | ||
/phpmd.xml export-ignore | ||
/phpstan.neon export-ignore | ||
/phpunit.xml export-ignore | ||
/tests export-ignore |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name-template: '$RESOLVED_VERSION' | ||
tag-template: '$RESOLVED_VERSION' | ||
name-template: '$NEXT_MINOR_VERSION' | ||
tag-template: '$NEXT_MINOR_VERSION' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
template: | | ||
## What's new since $PREVIOUS_TAG | ||
$CHANGES | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEXT_MINOR_VERSION | ||
$CONTRIBUTORS |
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
10 changes: 5 additions & 5 deletions
10
.github/workflows/draft-release.yml → .github/workflows/release.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
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
vendor | ||
# To ignore OS temporary files use global .gitignore | ||
# https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer | ||
|
||
/.coverage-html | ||
/.phpunit.cache | ||
/build | ||
/cobertura.xml | ||
/composer.lock | ||
build | ||
screenshots | ||
docker-compose.override.yml | ||
todo.txt | ||
/docker-compose.override.yml | ||
/screenshots | ||
/vendor | ||
/vendor-bin | ||
/todo.txt |
Oops, something went wrong.