mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
Disable production deployment - Docker publishing is working for local updates
This commit is contained in:
+24
-24
@@ -162,30 +162,30 @@ jobs:
|
|||||||
tags: ${{ steps.meta-frontend.outputs.tags }}
|
tags: ${{ steps.meta-frontend.outputs.tags }}
|
||||||
labels: ${{ steps.meta-frontend.outputs.labels }}
|
labels: ${{ steps.meta-frontend.outputs.labels }}
|
||||||
|
|
||||||
deploy:
|
# deploy:
|
||||||
name: Deploy to Production
|
# name: Deploy to Production
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: build-and-push
|
# needs: build-and-push
|
||||||
if: github.ref == 'refs/heads/main'
|
# if: github.ref == 'refs/heads/main'
|
||||||
environment: production
|
# environment: production
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout code
|
# - name: Checkout code
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy to server
|
# - name: Deploy to server
|
||||||
uses: appleboy/ssh-action@v1.0.0
|
# uses: appleboy/ssh-action@v1.0.0
|
||||||
with:
|
# with:
|
||||||
host: ${{ secrets.PROD_HOST }}
|
# host: ${{ secrets.PROD_HOST }}
|
||||||
username: ${{ secrets.PROD_USER }}
|
# username: ${{ secrets.PROD_USER }}
|
||||||
key: ${{ secrets.PROD_SSH_KEY }}
|
# key: ${{ secrets.PROD_SSH_KEY }}
|
||||||
script: |
|
# script: |
|
||||||
cd /opt/trackeep
|
# cd /opt/trackeep
|
||||||
docker-compose -f docker-compose.prod.yml pull
|
# docker-compose -f docker-compose.prod.yml pull
|
||||||
docker-compose -f docker-compose.prod.yml up -d
|
# docker-compose -f docker-compose.prod.yml up -d
|
||||||
docker system prune -f
|
# docker system prune -f
|
||||||
|
|
||||||
- name: Run health check
|
# - name: Run health check
|
||||||
run: |
|
# run: |
|
||||||
sleep 30
|
# sleep 30
|
||||||
curl -f ${{ secrets.PROD_URL }}/health || exit 1
|
# curl -f ${{ secrets.PROD_URL }}/health || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user