We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1062f7e commit 7a655d1Copy full SHA for 7a655d1
.github/workflows/deploy.yml
@@ -18,20 +18,23 @@ jobs:
18
ssh-keyscan -H v1.minusxapi.com >> ~/.ssh/known_hosts
19
20
- name: Run frontend server (v1)
21
+ uses: appleboy/ssh-action@v1.0.3
22
env:
- REF: ${{ github.ref }} # trying ref
23
- run: |
24
- ssh minusx@v1.minusxapi.com << 'EOF'
+ REF: ${{ github.ref }}
+ with:
25
+ host: v1.minusxapi.com
26
+ username: minusx
27
+ key: ${{ secrets.PROD_SERVER_SSH_KEY }}
28
+ envs: REF
29
+ script: |
30
cd /home/minusx/minusx/web
31
echo "can you read this"
32
echo $REF
- echo $REF >> /tmp/test.txt
33
git fetch --all --tags
34
git checkout $REF
35
git reset --hard $REF
36
docker compose up -d --build
37
docker image prune -f
38
echo "what is happening"
39
- EOF
-
40
+
0 commit comments