fix deployment v2
Some checks failed
Deploy to Production / deploy (push) Failing after 0s

This commit is contained in:
2025-07-25 03:16:25 +03:00
parent 008b2e57f2
commit d21b3b3214

View File

@@ -9,11 +9,16 @@ jobs:
deploy: deploy:
runs-on: [docker, host] runs-on: [docker, host]
steps: steps:
- name: Checkout code - name: Prepare workspace
uses: actions/checkout@v3 run: |
rm -rf /tmp/olaper
mkdir -p /tmp/olaper
cd /tmp/olaper
git clone --branch prod ssh://git@10.25.100.250:2222/serty/olaper.git .
- name: Build Docker image - name: Build Docker image
run: | run: |
cd /tmp/olaper
docker build -t olaper:latest . docker build -t olaper:latest .
- name: Stop old container (if running) - name: Stop old container (if running)
@@ -31,3 +36,6 @@ jobs:
-e SECRET_KEY=${{ secrets.SECRET_KEY }} \ -e SECRET_KEY=${{ secrets.SECRET_KEY }} \
-e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \ -e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \
olaper:latest olaper:latest
- name: Cleanup
run: rm -rf /tmp/olaper