Add directory
This commit is contained in:
@@ -28,10 +28,10 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
default: --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --ignore-platform-reqs
|
||||
directory:
|
||||
working-directory:
|
||||
required: false
|
||||
type: string
|
||||
default: .
|
||||
default: ./
|
||||
username:
|
||||
required: false
|
||||
type: string
|
||||
@@ -54,11 +54,12 @@ jobs:
|
||||
uses: https://git.qlic.nl/actions/setup-composer@24ab8f0c998dbd521cbc8ec3250ded68467ac647
|
||||
with:
|
||||
args: ${{ inputs.composer-args }}
|
||||
directory: ${{ inputs.directory }}
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
||||
- name: Create .env file from secret
|
||||
if: ${{ secrets.env }}
|
||||
run: echo "${{ secrets.env }}" > .env
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
||||
- name: Build
|
||||
if: ${{ inputs.node-package-manager }}
|
||||
@@ -76,17 +77,21 @@ jobs:
|
||||
if [ "${{ inputs.node-package-manager }}" != "none" ] && [ -n "${{ inputs.node-package-manager }}" ]; then
|
||||
${{ inputs.node-package-manager }} run build
|
||||
fi
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
||||
|
||||
- name: Set up SSH agent
|
||||
uses: webfactory/ssh-agent@v0.5.3
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.ssh-private-key }}
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
||||
- name: Disable strict host key checking
|
||||
run: |
|
||||
echo "Host *" >> ~/.ssh/config
|
||||
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
||||
- name: Deploy
|
||||
run: vendor/bin/dep deploy ${{ inputs.environment }}
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
Reference in New Issue
Block a user