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 }}
|
||||
labels: ${{ steps.meta-frontend.outputs.labels }}
|
||||
|
||||
deploy:
|
||||
name: Deploy to Production
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-and-push
|
||||
if: github.ref == 'refs/heads/main'
|
||||
environment: production
|
||||
# deploy:
|
||||
# name: Deploy to Production
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: build-and-push
|
||||
# if: github.ref == 'refs/heads/main'
|
||||
# environment: production
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
# steps:
|
||||
# - name: Checkout code
|
||||
# uses: actions/checkout@v4
|
||||
|
||||
- name: Deploy to server
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
with:
|
||||
host: ${{ secrets.PROD_HOST }}
|
||||
username: ${{ secrets.PROD_USER }}
|
||||
key: ${{ secrets.PROD_SSH_KEY }}
|
||||
script: |
|
||||
cd /opt/trackeep
|
||||
docker-compose -f docker-compose.prod.yml pull
|
||||
docker-compose -f docker-compose.prod.yml up -d
|
||||
docker system prune -f
|
||||
# - name: Deploy to server
|
||||
# uses: appleboy/ssh-action@v1.0.0
|
||||
# with:
|
||||
# host: ${{ secrets.PROD_HOST }}
|
||||
# username: ${{ secrets.PROD_USER }}
|
||||
# key: ${{ secrets.PROD_SSH_KEY }}
|
||||
# script: |
|
||||
# cd /opt/trackeep
|
||||
# docker-compose -f docker-compose.prod.yml pull
|
||||
# docker-compose -f docker-compose.prod.yml up -d
|
||||
# docker system prune -f
|
||||
|
||||
- name: Run health check
|
||||
run: |
|
||||
sleep 30
|
||||
curl -f ${{ secrets.PROD_URL }}/health || exit 1
|
||||
# - name: Run health check
|
||||
# run: |
|
||||
# sleep 30
|
||||
# curl -f ${{ secrets.PROD_URL }}/health || exit 1
|
||||
|
||||
Reference in New Issue
Block a user