Add directory
This commit is contained in:
@@ -28,10 +28,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --ignore-platform-reqs
|
default: --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --ignore-platform-reqs
|
||||||
deploy-file:
|
directory:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: deploy.php
|
default: .
|
||||||
username:
|
username:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@@ -50,13 +50,11 @@ jobs:
|
|||||||
username: ${{ inputs.username }}
|
username: ${{ inputs.username }}
|
||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup composer
|
- name: Setup composer
|
||||||
uses: https://git.qlic.nl/actions/setup-composer@v1
|
uses: https://git.qlic.nl/actions/setup-composer@v1
|
||||||
with:
|
with:
|
||||||
args: ${{ inputs.composer-args }}
|
args: ${{ inputs.composer-args }}
|
||||||
|
directory: ${{ inputs.directory }}
|
||||||
|
|
||||||
- name: Create .env file from secret
|
- name: Create .env file from secret
|
||||||
if: ${{ secrets.env }}
|
if: ${{ secrets.env }}
|
||||||
@@ -91,4 +89,4 @@ jobs:
|
|||||||
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: vendor/bin/dep deploy ${{ inputs.environment }} --file=${{ inputs.deploy-file }}
|
run: vendor/bin/dep deploy ${{ inputs.environment }}
|
||||||
|
@@ -66,11 +66,6 @@ jobs:
|
|||||||
- **Default:** `${{ vars.REGISTRY_PASSWORD }}`
|
- **Default:** `${{ vars.REGISTRY_PASSWORD }}`
|
||||||
- **Description:** Password for the Docker registry authentication. Defaults to the value stored in `vars.REGISTRY_PASSWORD`.
|
- **Description:** Password for the Docker registry authentication. Defaults to the value stored in `vars.REGISTRY_PASSWORD`.
|
||||||
|
|
||||||
- **deploy-file** (optional):
|
|
||||||
- **Type:** `string`
|
|
||||||
- **Default:** `deploy.php`
|
|
||||||
- **Description:** The deployment file used by the Deployer tool. This file contains the deployment configuration and tasks.
|
|
||||||
|
|
||||||
## Workflow Job: `deploy`
|
## Workflow Job: `deploy`
|
||||||
|
|
||||||
The `deploy` job handles the core deployment process. It consists of multiple steps to set up dependencies, manage environment variables, build frontend assets, configure SSH, and deploy the application.
|
The `deploy` job handles the core deployment process. It consists of multiple steps to set up dependencies, manage environment variables, build frontend assets, configure SSH, and deploy the application.
|
||||||
|
Reference in New Issue
Block a user