-
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 feature/extended-enums
- Loading branch information
Showing
57 changed files
with
5,891 additions
and
5,835 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,29 @@ | ||
# General | ||
**/.DS_Store | ||
**/*.md | ||
**/LICENSE | ||
|
||
# Git | ||
**/.git | ||
**/.github | ||
**/.gitattributes | ||
**/.gitignore | ||
|
||
# Docker | ||
**/.dockerignore | ||
**/Dockerfile | ||
**/docker-compose.yaml | ||
|
||
# Laravel | ||
bootstrap/cache | ||
storage/framework | ||
storage/logs | ||
!bootstrap/cache/.gitignore | ||
!storage/**/.gitignore | ||
tests | ||
vendor | ||
|
||
# Env | ||
.env | ||
.env.* | ||
!.env.example |
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,58 +1,58 @@ | ||
APP_NAME=Laravel | ||
APP_ENV=local | ||
APP_NAME= | ||
APP_ENV= | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
LOG_CHANNEL=stack | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=laravel | ||
DB_USERNAME=root | ||
APP_DEBUG= | ||
APP_URL= | ||
|
||
LOG_CHANNEL= | ||
LOG_DEPRECATIONS_CHANNEL= | ||
LOG_LEVEL= | ||
|
||
DB_CONNECTION= | ||
DB_HOST= | ||
DB_PORT= | ||
DB_DATABASE= | ||
DB_USERNAME= | ||
DB_PASSWORD= | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
FILESYSTEM_DISK=local | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
BROADCAST_DRIVER= | ||
CACHE_DRIVER= | ||
FILESYSTEM_DISK= | ||
QUEUE_CONNECTION= | ||
SESSION_DRIVER= | ||
SESSION_LIFETIME= | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
MEMCACHED_HOST= | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
REDIS_HOST= | ||
REDIS_PASSWORD= | ||
REDIS_PORT= | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=mailpit | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
MAIL_MAILER= | ||
MAIL_HOST= | ||
MAIL_PORT= | ||
MAIL_USERNAME= | ||
MAIL_PASSWORD= | ||
MAIL_ENCRYPTION= | ||
MAIL_FROM_ADDRESS= | ||
MAIL_FROM_NAME= | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_DEFAULT_REGION= | ||
AWS_BUCKET= | ||
AWS_USE_PATH_STYLE_ENDPOINT=false | ||
AWS_USE_PATH_STYLE_ENDPOINT= | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_HOST= | ||
PUSHER_PORT=443 | ||
PUSHER_SCHEME=https | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
VITE_PUSHER_HOST="${PUSHER_HOST}" | ||
VITE_PUSHER_PORT="${PUSHER_PORT}" | ||
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" | ||
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" | ||
PUSHER_PORT= | ||
PUSHER_SCHEME= | ||
PUSHER_APP_CLUSTER= | ||
|
||
VITE_PUSHER_APP_KEY= | ||
VITE_PUSHER_HOST= | ||
VITE_PUSHER_PORT= | ||
VITE_PUSHER_SCHEME= | ||
VITE_PUSHER_APP_CLUSTER= |
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,58 @@ | ||
APP_NAME=Project-name | ||
APP_ENV=test | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
LOG_CHANNEL=stack | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=laravel | ||
DB_USERNAME=root | ||
DB_PASSWORD= | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
FILESYSTEM_DISK=local | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=mailpit | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
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 | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_HOST= | ||
PUSHER_PORT=443 | ||
PUSHER_SCHEME=https | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
VITE_PUSHER_HOST="${PUSHER_HOST}" | ||
VITE_PUSHER_PORT="${PUSHER_PORT}" | ||
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" | ||
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" |
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,10 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
groups: | ||
all-actions: | ||
patterns: ['*'] |
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,20 @@ | ||
--- | ||
name: Auto-deploy to development | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: ['main'] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-deploy: | ||
uses: wisemen-digital/devops-github-actions/.github/workflows/workflow-build-and-deploy-scaleway.yml@main | ||
with: | ||
environment: development | ||
scaleway-container-registry: ${{ vars.CONTAINER_REGISTRY_ENDPOINT }} | ||
scaleway-organization-id: ${{ vars.SCALEWAY_ORGANIZATION_ID }} | ||
scaleway-project-id: ${{ vars.SCALEWAY_PROJECT_ID }} | ||
scaleway-region: ${{ vars.SCALEWAY_REGION }} | ||
scaleway-cluster-id: ${{ vars.K8S_CLUSTER_ID }} | ||
cluster-deployments: ${{ vars.K8S_DEPLOYMENTS }} | ||
secrets: inherit |
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,28 @@ | ||
--- | ||
name: Promote to enviroment | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
description: Target environment to deploy TO | ||
type: environment | ||
required: true | ||
source-tag: | ||
description: Source tag (defaults to previous environment) | ||
type: string | ||
required: false | ||
|
||
jobs: | ||
promote-to-env: | ||
uses: wisemen-digital/devops-github-actions/.github/workflows/workflow-promote-to-environment-scaleway.yml@main | ||
with: | ||
environment-source: ${{ inputs.source-tag }} | ||
environment-target: ${{ inputs.environment }} | ||
scaleway-container-registry: ${{ vars.CONTAINER_REGISTRY_ENDPOINT }} | ||
scaleway-organization-id: ${{ vars.SCALEWAY_ORGANIZATION_ID }} | ||
scaleway-project-id: ${{ vars.SCALEWAY_PROJECT_ID }} | ||
scaleway-region: ${{ vars.SCALEWAY_REGION }} | ||
scaleway-cluster-id: ${{ vars.K8S_CLUSTER_ID }} | ||
cluster-deployments: ${{ vars.K8S_DEPLOYMENTS }} | ||
secrets: inherit |
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,15 @@ | ||
--- | ||
name: PR Check | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint-build-test: | ||
uses: wisemen-digital/devops-github-actions/.github/workflows/laravel-build-and-test.yml@main | ||
if: github.event.pull_request.draft == false | ||
with: | ||
php-version: '8.3' |
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,22 +1,56 @@ | ||
/.phpunit.cache | ||
# Compiled output | ||
/dist | ||
/node_modules | ||
/vendor | ||
/.phpunit.cache | ||
/public/build | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
pnpm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Tests | ||
/test-reports | ||
.phpunit.result.cache | ||
|
||
# OS | ||
.DS_Store | ||
|
||
# IDEs and editors | ||
/.idea | ||
/.fleet | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
.editorconfig | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# Environment files | ||
.env | ||
.env.* | ||
!.env.example | ||
!.env.testing | ||
|
||
# Keys | ||
auth.json | ||
/storage/*.key | ||
|
||
# Storage | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
.env | ||
.env.backup | ||
.env.production | ||
.phpunit.result.cache | ||
Homestead.json | ||
Homestead.yaml | ||
auth.json | ||
npm-debug.log | ||
yarn-error.log | ||
/.fleet | ||
/.idea | ||
/.vscode | ||
/test-reports | ||
.editorconfig | ||
.DS_Store |
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 +1 @@ | ||
8.2 | ||
8.3 |
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,46 @@ | ||
# Command line arguments, such as PHP version | ||
ARG PHP_VERSION=8.3 | ||
|
||
# | ||
# --- Stage 1: Build --- | ||
# | ||
|
||
FROM lorisleiva/laravel-docker:${PHP_VERSION} AS build | ||
|
||
ARG BUILD_COMMIT | ||
ARG BUILD_NUMBER | ||
ARG BUILD_TIMESTAMP | ||
|
||
# Install dependencies | ||
WORKDIR /app | ||
COPY composer.json composer.lock ./ | ||
RUN composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts | ||
|
||
# Copy files | ||
COPY . . | ||
|
||
# Optimize a bit | ||
RUN composer dump-autoload --optimize --classmap-authoritative \ | ||
&& php artisan event:cache \ | ||
&& php artisan route:cache \ | ||
&& php artisan view:cache | ||
|
||
# | ||
# --- Stage 2: Run --- | ||
# | ||
|
||
FROM ghcr.io/wisemen-digital/php-base:${PHP_VERSION} AS final | ||
|
||
ARG BUILD_COMMIT | ||
ARG BUILD_NUMBER | ||
ARG BUILD_TIMESTAMP | ||
|
||
ENV BUILD_COMMIT $BUILD_COMMIT | ||
ENV BUILD_NUMBER $BUILD_NUMBER | ||
ENV BUILD_TIMESTAMP $BUILD_TIMESTAMP | ||
|
||
# Add application | ||
COPY --from=build --chown=nobody /app/ /app/www/ | ||
|
||
# Symlinks (must be created on final system) | ||
RUN php artisan storage:link |
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.