-
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 pull request #54 from cybex-gmbh/main
Release v0.4.0
- Loading branch information
Showing
123 changed files
with
15,128 additions
and
14,215 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
APP_NAME="Transmorpher Amigor" | ||
APP_ENV=production | ||
APP_KEY=base64:rE8A8OivXEW/wCiRS5D0SMTr3LO/NA2KSZPSsBzPZ2I= | ||
APP_DEBUG=false | ||
APP_TIMEZONE=UTC | ||
APP_URL=https://transmorpher.test | ||
|
||
# Docker | ||
APP_SERVICE=app | ||
DOCKER_CONTAINER_NAME=transmorpher-amigor | ||
#DOCKER_PHP_VERSION=8.3 | ||
# Use different DB ports if you need to expose more than one DB container | ||
#FORWARD_DB_PORT=3306 | ||
|
||
# Transmorpher | ||
TRANSMORPHER_AUTH_TOKEN=setThisViaTransmorpherPullPreviewWorkflow | ||
TRANSMORPHER_S2S_API_BASE_URL=http://transmorpher/api | ||
TRANSMORPHER_WEB_API_BASE_URL=setThisInTransmorpherPullPreviewDockerCompose | ||
TRANSMORPHER_WEB_DELIVERY_BASE_URL=setThisInTransmorpherPullPreviewDockerCompose | ||
TRANSMORPHER_WEB_PLACEHOLDER_URL=https://placehold.co/400 | ||
|
||
APP_LOCALE=en | ||
APP_FALLBACK_LOCALE=en | ||
APP_FAKER_LOCALE=en_US | ||
|
||
APP_MAINTENANCE_DRIVER=file | ||
APP_MAINTENANCE_STORE=database | ||
|
||
BCRYPT_ROUNDS=12 | ||
|
||
LOG_CHANNEL=stack | ||
LOG_STACK=single | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=amigor-mysql-1 | ||
DB_PORT=3306 | ||
DB_DATABASE=amigor | ||
DB_USERNAME=amigor | ||
DB_PASSWORD=password | ||
|
||
SESSION_DRIVER=database | ||
SESSION_LIFETIME=120 | ||
SESSION_ENCRYPT=false | ||
SESSION_PATH=/ | ||
SESSION_DOMAIN=null | ||
|
||
BROADCAST_CONNECTION=log | ||
FILESYSTEM_DISK=local | ||
QUEUE_CONNECTION=database | ||
|
||
CACHE_STORE=database | ||
CACHE_PREFIX= | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
REDIS_CLIENT=phpredis | ||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=log | ||
MAIL_HOST=127.0.0.1 | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="hello@example.com" | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
AWS_USE_PATH_STYLE_ENDPOINT=false | ||
|
||
VITE_APP_NAME="${APP_NAME}" |
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,4 +1,4 @@ | ||
* text=auto | ||
* text=auto eol=lf | ||
|
||
*.blade.php diff=html | ||
*.css diff=css | ||
|
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,40 +1,53 @@ | ||
name: PullPreview | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, synchronize, closed, reopened] | ||
types: [ labeled, unlabeled, synchronize, closed, reopened ] | ||
|
||
jobs: | ||
deploy: | ||
prepare-amigor-env: | ||
name: Prepare Amigor .env | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: Checkout Transmorpher repo | ||
# https://github.com/actions/checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: | | ||
.env.amigor | ||
# https://git-scm.com/docs/git-sparse-checkout#_internalscone_mode_handling | ||
sparse-checkout-cone-mode: false | ||
- run: echo "TRANSMORPHER_AUTH_TOKEN=\"${{ secrets.PULLPREVIEW_TRANSMORPHER_AUTH_TOKEN }}\"" >> .env.amigor | ||
|
||
- name: Upload Amigor .env file | ||
# https://github.com/actions/upload-artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: amigor-env | ||
path: | | ||
.env.amigor | ||
deploy-staging-environment: | ||
needs: prepare-amigor-env | ||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
deployments: write # to delete deployments | ||
pull-requests: write # to remove labels | ||
statuses: write # to create commit status | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate .env file | ||
env: | ||
SECRETS_APP_KEY: ${{ secrets.APP_KEY }} | ||
SECRETS_TRANSMORPHER_SIGNING_KEYPAIR: ${{ secrets.TRANSMORPHER_SIGNING_KEYPAIR }} | ||
SECRETS_PULLPREVIEW_TRANSMORPHER_AUTH_TOKEN_HASH: ${{ secrets.PULLPREVIEW_TRANSMORPHER_AUTH_TOKEN_HASH }} | ||
run: | | ||
cp .env.example .env | ||
echo "APP_KEY=$SECRETS_APP_KEY" >> .env | ||
echo "TRANSMORPHER_SIGNING_KEYPAIR=$SECRETS_TRANSMORPHER_SIGNING_KEYPAIR" >> .env | ||
echo "PULLPREVIEW_TRANSMORPHER_AUTH_TOKEN_HASH=$SECRETS_PULLPREVIEW_TRANSMORPHER_AUTH_TOKEN_HASH" >> .env | ||
- uses: pullpreview/action@v5 | ||
with: | ||
admins: jheusinger, gael-connan-cybex, holyfabi, lupinitylabs, mszulik | ||
cidrs: "0.0.0.0/0" | ||
compose_files: docker-compose.pullpreview.yml | ||
default_port: 80 | ||
instance_type: medium | ||
ports: 80, 443 | ||
env: | ||
AWS_ACCESS_KEY_ID: "${{ secrets.PULLPREVIEW_AWS_ACCESS_KEY_ID }}" | ||
AWS_SECRET_ACCESS_KEY: "${{ secrets.PULLPREVIEW_AWS_SECRET_ACCESS_KEY }}" | ||
AWS_REGION: "eu-central-1" | ||
name: Deploy PullPreview staging environment | ||
# https://github.com/cybex-gmbh/github-workflows/blob/main/.github/workflows/pullpreview.yml | ||
uses: cybex-gmbh/github-workflows/.github/workflows/pullpreview.yml@main | ||
with: | ||
PULLPREVIEW_ADMINS: jheusinger, gael-connan-cybex, holyfabi, lupinitylabs, mszulik | ||
INSTANCE_TYPE: large | ||
ARTIFACT_NAME: amigor-env | ||
secrets: | ||
ENV_VARS: | | ||
APP_KEY="${{ secrets.PULLPREVIEW_APP_KEY }}" | ||
TRANSMORPHER_SIGNING_KEYPAIR="${{ secrets.PULLPREVIEW_TRANSMORPHER_SIGNING_KEYPAIR }}" | ||
TRANSMORPHER_AUTH_TOKEN_HASH="${{ secrets.PULLPREVIEW_TRANSMORPHER_AUTH_TOKEN_HASH }}" | ||
PULLPREVIEW_AWS_ACCESS_KEY_ID: ${{ secrets.PULLPREVIEW_AWS_ACCESS_KEY_ID }} | ||
PULLPREVIEW_AWS_SECRET_ACCESS_KEY: ${{ secrets.PULLPREVIEW_AWS_SECRET_ACCESS_KEY }} | ||
PULLPREVIEW_BASIC_AUTH: ${{ secrets.PULLPREVIEW_BASIC_AUTH }} |
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.