Merge pull request 'Remove the steps related to pulling qore/frontend in the deploy job' (#1) from qore-remove-clone into qore
Reviewed-on: #1
This commit is contained in:
commit
87d11faa46
@ -56,29 +56,9 @@ jobs:
|
||||
with:
|
||||
args: ${{ inputs.composer-args }}
|
||||
|
||||
- name: Determine frontend ref
|
||||
id: get-version
|
||||
run: |
|
||||
echo version=$(grep -A 10 '"name": "qore/system"' composer.lock | grep '"version":' | awk -F '": "' '{print $2}' | sed 's/",//') >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create frontend .env file from secret
|
||||
run: echo "${{ secrets.frontend-env }}" > frontend/.env
|
||||
|
||||
- name: Set up SSH agent
|
||||
uses: webfactory/ssh-agent@v0.5.3
|
||||
with:
|
||||
ssh-private-key: |
|
||||
${{ secrets.ssh-private-key }}
|
||||
${{ vars.QORE_FRONTEND_DEPLOY_TOKEN }}
|
||||
|
||||
- name: Disable strict host key checking
|
||||
run: |
|
||||
echo "Host *" >> ~/.ssh/config
|
||||
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
|
||||
- name: Clone frontend
|
||||
run: git clone --depth 1 --branch ${{ steps.get-version.outputs.version }} git@git.qlic.nl:qore/qore-frontend.git frontend/src/qore
|
||||
|
||||
- name: Create .env file from secret
|
||||
run: echo "${{ secrets.env }}" > .env
|
||||
|
||||
@ -98,6 +78,16 @@ jobs:
|
||||
if [ "${{ inputs.node-package-manager }}" != "none" ] && [ -n "${{ inputs.node-package-manager }}" ]; then
|
||||
${{ inputs.node-package-manager }} run build
|
||||
fi
|
||||
|
||||
- name: Set up SSH agent
|
||||
uses: webfactory/ssh-agent@v0.5.3
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.ssh-private-key }}
|
||||
|
||||
- name: Disable strict host key checking
|
||||
run: |
|
||||
echo "Host *" >> ~/.ssh/config
|
||||
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
|
||||
- name: Deploy
|
||||
run: vendor/bin/dep deploy environment="${{ inputs.environment }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user