Skip to content

Commit

Permalink
Update production-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD authored Aug 28, 2024
1 parent cf3df78 commit 243ef4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/production-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- name: Set TAG environment variable
id: get_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Debug TAG value
run: echo "TAG value ${{ env.TAG }}"
- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
Expand All @@ -27,6 +29,7 @@ jobs:
key: ${{ secrets.SSH_KEY_PROD }}
port: ${{ secrets.PORT_PROD }}
script: |
TAG="${{ env.TAG }}"
TARGET_DIR="${{ secrets.TARGET_DIR_PROD }}"
ENVIRONMENT="$TARGET_DIR/.env"
if [ -f "$ENVIRONMENT" ]; then
Expand All @@ -37,8 +40,5 @@ jobs:
${{ secrets.PROD_ENV }}
EOF
cd ${{ secrets.TARGET_DIR_PROD }}
#docker stop ${{ secrets.CONTAINER_NAME }}
#docker rm -f ${{ secrets.CONTAINER_NAME }}
#docker system prune -af
ls -ltra
./deploy.sh $TAG

0 comments on commit 243ef4c

Please sign in to comment.