Compare commits
5 Commits
main
...
feature/de
Author | SHA1 | Date | |
---|---|---|---|
bb6680569a
|
|||
39079e200d
|
|||
a981a1ca84
|
|||
82f0988dc9
|
|||
5ae59eaa85
|
@@ -28,6 +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
|
||||||
|
working-directory:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ./
|
||||||
username:
|
username:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@@ -46,17 +50,19 @@ 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@39079e200da5483e53afeff1be193daec6ed561a
|
||||||
with:
|
with:
|
||||||
args: ${{ inputs.composer-args }}
|
args: ${{ inputs.composer-args }}
|
||||||
|
working-directory: ${{ inputs.working-directory }}
|
||||||
|
|
||||||
|
- name: Set working directory
|
||||||
|
run: cd ${{ inputs.working-directory }}
|
||||||
|
|
||||||
- name: Create .env file from secret
|
- name: Create .env file from secret
|
||||||
if: ${{ secrets.env }}
|
if: ${{ secrets.env }}
|
||||||
run: echo "${{ secrets.env }}" > .env
|
run: echo "${{ secrets.env }}" > .env
|
||||||
|
working-directory: ${{ inputs.working-directory }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: ${{ inputs.node-package-manager }}
|
if: ${{ inputs.node-package-manager }}
|
||||||
@@ -74,17 +80,21 @@ jobs:
|
|||||||
if [ "${{ inputs.node-package-manager }}" != "none" ] && [ -n "${{ inputs.node-package-manager }}" ]; then
|
if [ "${{ inputs.node-package-manager }}" != "none" ] && [ -n "${{ inputs.node-package-manager }}" ]; then
|
||||||
${{ inputs.node-package-manager }} run build
|
${{ inputs.node-package-manager }} run build
|
||||||
fi
|
fi
|
||||||
|
working-directory: ${{ inputs.working-directory }}
|
||||||
|
|
||||||
|
|
||||||
- name: Set up SSH agent
|
- name: Set up SSH agent
|
||||||
uses: webfactory/ssh-agent@v0.5.3
|
uses: webfactory/ssh-agent@v0.5.3
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.ssh-private-key }}
|
ssh-private-key: ${{ secrets.ssh-private-key }}
|
||||||
|
working-directory: ${{ inputs.working-directory }}
|
||||||
|
|
||||||
- name: Disable strict host key checking
|
- name: Disable strict host key checking
|
||||||
run: |
|
run: |
|
||||||
echo "Host *" >> ~/.ssh/config
|
echo "Host *" >> ~/.ssh/config
|
||||||
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
||||||
|
working-directory: ${{ inputs.working-directory }}
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: vendor/bin/dep deploy environment="${{ inputs.environment }}"
|
run: vendor/bin/dep deploy ${{ inputs.environment }}
|
||||||
|
working-directory: ${{ inputs.working-directory }}
|
||||||
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.idea
|
Reference in New Issue
Block a user