4
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
2024-12-04 14:50:12 +03:00
parent de3fceb031
commit 803c73fd6a
2 changed files with 18 additions and 1 deletions

View File

@@ -16,3 +16,18 @@ steps:
password:
from_secret: docker_token
deploy:
image: appleboy/drone-ssh
settings:
host: akulovs.ru
port: 2121
username:
from_secret: woodpecker_ssh_user
key:
from_secret: woodpecker_ssh_key
script:
- docker pull akulovsergei/test-app:latest
- docker stop test-app || true
- docker rm test-app || true
- docker run -d --name test-app -p 5000:5000 akulovsergei/test-app:latest

View File

@@ -5,4 +5,6 @@ COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
CMD ["python", "run.py"]