Disable production deployment - Docker publishing is working for local updates

This commit is contained in:
Tomas Dvorak
2026-02-27 18:27:27 +01:00
parent 46845b8341
commit e465e00d1a
+24 -24
View File
@@ -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