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:
|
with:
|
||||||
args: ${{ inputs.composer-args }}
|
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
|
- name: Create frontend .env file from secret
|
||||||
run: echo "${{ secrets.frontend-env }}" > frontend/.env
|
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
|
- name: Create .env file from secret
|
||||||
run: echo "${{ secrets.env }}" > .env
|
run: echo "${{ secrets.env }}" > .env
|
||||||
|
|
||||||
@ -99,5 +79,15 @@ jobs:
|
|||||||
${{ inputs.node-package-manager }} run build
|
${{ inputs.node-package-manager }} run build
|
||||||
fi
|
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
|
- name: Deploy
|
||||||
run: vendor/bin/dep deploy environment="${{ inputs.environment }}"
|
run: vendor/bin/dep deploy environment="${{ inputs.environment }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user