Skip to content

Commit e273e1f

Browse files
committed
ci: fix deploy
1 parent 18dcc2d commit e273e1f

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

.github/workflows/cd.yaml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
concurrency:
13-
group: docs
13+
group: blokmap-docs
1414
cancel-in-progress: true
1515

1616
jobs:
@@ -51,18 +51,20 @@ jobs:
5151
cache-from: type=registry,ref=ghcr.io/blokmap/blokmap-docs:buildcache
5252
cache-to: type=registry,ref=ghcr.io/blokmap/blokmap-docs:buildcache,mode=max
5353

54-
# release:
55-
# runs-on: self-hosted
56-
# needs: [build]
57-
# steps:
58-
# - name: Deploy docs
59-
# uses: appleboy/ssh-action@v1.2.1
60-
# with:
61-
# host: ${{ secrets.PRODUCTION_HOST }}
62-
# username: ${{ secrets.PRODUCTION_USERNAME }}
63-
# key: ${{ secrets.PRODUCTION_SSH_KEY }}
64-
# debug: true
65-
# script: |
66-
# set -e
67-
# docker compose -f /home/blokmap/deploy/production/compose.prod.yaml pull
68-
# docker compose -f /home/blokmap/deploy/production/compose.prod.yaml up blokmap-prod-docs
54+
release:
55+
runs-on: self-hosted
56+
needs: [build]
57+
steps:
58+
- name: Deploy docs
59+
uses: appleboy/ssh-action@v1.2.1
60+
with:
61+
host: ${{ secrets.PRODUCTION_HOST }}
62+
username: ${{ secrets.PRODUCTION_USERNAME }}
63+
port: ${{ secrets.PRODUCTION_SSH_PORT }}
64+
key: ${{ secrets.PRODUCTION_SSH_KEY }}
65+
debug: true
66+
script: |
67+
set -e
68+
cd /home/blokmap/repos/deploy && git pull
69+
docker compose -f /home/blokmap/repos/deploy/production/compose/compose.production.yaml pull blokmap-docs
70+
docker compose -f /home/blokmap/repos/deploy/production/compose/compose.production.yaml up blokmap-docs

0 commit comments

Comments
 (0)