We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac35396 commit 0607fdeCopy full SHA for 0607fde
1 file changed
.github/workflows/deploy-production.yaml
@@ -31,7 +31,15 @@ jobs:
31
run: |
32
eval $(ssh-agent -s)
33
echo "$SSH_KEY" | ssh-add - >/dev/null
34
- ssh "${SSH_USER}@${SSH_HOST}" "./prod.sh ${{ github.event.inputs.tag }}"
+ ssh "${SSH_USER}@${SSH_HOST}" "
35
+ rm -rf dashboard-production &&
36
+ git clone --depth 1 --branch main https://github.com/kernelci/dashboard.git dashboard-production &&
37
+ cp ~/.env-production dashboard-production/.env &&
38
+ cd dashboard-production &&
39
+ git checkout ${GITHUB_SHA} &&
40
+ docker compose -f docker-compose-next.yml pull &&
41
+ docker compose -f docker-compose-next.yml up -d
42
+ "
43
env:
44
SSH_USER: ${{ secrets.STAGING_USER }}
45
SSH_HOST: ${{ secrets.STAGING_HOST }}
0 commit comments