Skip to content

Commit 0607fde

Browse files
authored
workflows: Add production deploy (#1779)
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent ac35396 commit 0607fde

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/deploy-production.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@ jobs:
3131
run: |
3232
eval $(ssh-agent -s)
3333
echo "$SSH_KEY" | ssh-add - >/dev/null
34-
ssh "${SSH_USER}@${SSH_HOST}" "./prod.sh ${{ github.event.inputs.tag }}"
34+
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+
"
3543
env:
3644
SSH_USER: ${{ secrets.STAGING_USER }}
3745
SSH_HOST: ${{ secrets.STAGING_HOST }}

0 commit comments

Comments
 (0)