Skip to content

Commit

Permalink
[FIX] missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
BliTz037 committed Apr 28, 2024
1 parent b15d269 commit 799277e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- beta
env:
APP_TAG: beta
PORT: 3095

jobs:
buildDockerImage:
Expand Down Expand Up @@ -33,9 +34,10 @@ jobs:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 22
port: 22,
envs: APP_TAG, PORT
script: |
docker stop gst-lametric-$APP_TAG;
docker rm gst-lametric-$APP_TAG;
docker pull ${{ secrets.DOCKER_USERNAME }}/gst-lametric:$APP_TAG;
docker run -d --name gst-lametric-$APP_TAG -p 3095:3000 --restart unless-stopped ${{ secrets.DOCKER_USERNAME }}/gst-lametric:beta;
docker run -d --name gst-lametric-$APP_TAG -p $PORT:3000 --restart unless-stopped ${{ secrets.DOCKER_USERNAME }}/gst-lametric:$APP_TAG;

0 comments on commit 799277e

Please sign in to comment.