forked from blumilksoftware/toby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into blumilksoftware#303-add-dusk
- Loading branch information
Showing
60 changed files
with
2,356 additions
and
2,367 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ APP_NAME="Toby HR application" | |
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
APP_URL=https://toby.blumilk.localhost | ||
|
||
LOG_CHANNEL=stack | ||
LOG_LEVEL=debug | ||
|
@@ -15,26 +15,9 @@ DB_USERNAME=toby | |
DB_PASSWORD=password | ||
DB_ROOT_PASSWORD=example | ||
|
||
EXTERNAL_WEBSERVER_PORT=80 | ||
EXTERNAL_NODE_PORT=5857 | ||
|
||
DOCKER_DEV_DB_EXTERNAL_PORT=5432 | ||
DOCKER_DEV_DB_DATABASE=${DB_DATABASE} | ||
DOCKER_DEV_DB_USERNAME=${DB_USERNAME} | ||
DOCKER_DEV_DB_PASSWORD=${DB_PASSWORD} | ||
DOCKER_DEV_DB_ROOT_PASSWORD=${DB_ROOT_PASSWORD} | ||
|
||
DOCKER_TEST_DB_EXTERNAL_PORT=5433 | ||
DOCKER_TEST_DB_DATABASE=${DB_DATABASE} | ||
DOCKER_TEST_DB_USERNAME=${DB_USERNAME} | ||
DOCKER_TEST_DB_PASSWORD=${DB_PASSWORD} | ||
DOCKER_TEST_DB_ROOT_PASSWORD=${DB_ROOT_PASSWORD} | ||
|
||
REDIS_PORT=6379 | ||
REDIS_HOST=toby-redis | ||
|
||
XDG_CONFIG_HOME=/tmp | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
QUEUE_CONNECTION=redis | ||
|
@@ -54,8 +37,6 @@ MAIL_ENCRYPTION=null | |
MAIL_FROM_ADDRESS=[email protected] | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
DOCKER_INSTALL_XDEBUG=false | ||
|
||
GOOGLE_CLIENT_ID= | ||
GOOGLE_CLIENT_SECRET= | ||
GOOGLE_CALENDAR_ENABLED=true | ||
|
@@ -68,3 +49,21 @@ SLACK_ENABLED=true | |
SLACK_CLIENT_TOKEN= | ||
SLACK_SIGNING_SECRET= | ||
SLACK_DEFAULT_CHANNEL="#general" | ||
|
||
EXTERNAL_WEBSERVER_PORT=8181 | ||
EXTERNAL_NODE_PORT=5857 | ||
|
||
DOCKER_INSTALL_XDEBUG=false | ||
XDG_CONFIG_HOME=/tmp | ||
|
||
DOCKER_DEV_DB_EXTERNAL_PORT=5432 | ||
DOCKER_DEV_DB_DATABASE=${DB_DATABASE} | ||
DOCKER_DEV_DB_USERNAME=${DB_USERNAME} | ||
DOCKER_DEV_DB_PASSWORD=${DB_PASSWORD} | ||
DOCKER_DEV_DB_ROOT_PASSWORD=${DB_ROOT_PASSWORD} | ||
|
||
DOCKER_TEST_DB_EXTERNAL_PORT=5433 | ||
DOCKER_TEST_DB_DATABASE=${DB_DATABASE} | ||
DOCKER_TEST_DB_USERNAME=${DB_USERNAME} | ||
DOCKER_TEST_DB_PASSWORD=${DB_PASSWORD} | ||
DOCKER_TEST_DB_ROOT_PASSWORD=${DB_ROOT_PASSWORD} |
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 |
---|---|---|
|
@@ -17,8 +17,38 @@ jobs: | |
- name: set branch name | ||
run: echo "BRANCH_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV | ||
|
||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ env.BRANCH_NAME }} | ||
|
||
- name: sync with main branch | ||
run: | | ||
git merge --no-commit --no-ff origin/main | ||
- name: set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
|
||
- name: build and push image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./environment/prod/app/Dockerfile | ||
push: true | ||
tags: ghcr.io/${{ github.repository_owner }}/toby:beta | ||
cache-from: type=gha, ref=ghcr.io/${{ github.repository_owner }}/toby-beta-build-cache | ||
cache-to: type=gha, ref=ghcr.io/${{ github.repository_owner }}/toby-beta-build-cache, mode=max | ||
|
||
- name: run deployment script over ssh | ||
uses: appleboy/[email protected].5 | ||
uses: appleboy/[email protected].8 | ||
with: | ||
timeout: 10s | ||
command_timeout: 10m | ||
|
@@ -32,4 +62,6 @@ jobs: | |
git fetch | ||
git checkout --force "${{ env.BRANCH_NAME }}" | ||
git pull | ||
git merge --no-commit --no-ff origin/main | ||
make beta-deploy | ||
docker images --filter dangling=true | grep "ghcr.io/blumilksoftware/toby" | awk '{print $3}'| xargs --no-run-if-empty docker rmi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,32 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
name: Deploy to production | ||
steps: | ||
- uses: appleboy/[email protected] | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
|
||
- name: build and push image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./environment/prod/app/Dockerfile | ||
push: true | ||
tags: | | ||
ghcr.io/${{ github.repository_owner }}/toby:latest | ||
ghcr.io/${{ github.repository_owner }}/toby:${{ github.ref_name }} | ||
cache-from: type=gha, ref=ghcr.io/${{ github.repository_owner }}/toby-prod-build-cache | ||
cache-to: type=gha, ref=ghcr.io/${{ github.repository_owner }}/toby-prod-build-cache, mode=max | ||
|
||
- uses: appleboy/[email protected] | ||
env: | ||
BRANCH_NAME: "main" | ||
with: | ||
|
@@ -32,3 +57,4 @@ jobs: | |
git checkout --force "${{ env.BRANCH_NAME }}" | ||
git pull | ||
make prod-deploy | ||
docker images --filter dangling=true | grep "ghcr.io/blumilksoftware/toby" | awk '{print $3}'| xargs --no-run-if-empty docker rmi |
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 |
---|---|---|
|
@@ -20,3 +20,4 @@ google-credentials.json | |
.idea/ | ||
.composer | ||
.deployment | ||
/.phpunit.cache |
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
Oops, something went wrong.