This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -5,4 +5,6 @@ COPY . .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["python", "run.py"]
|
||||
|
||||
Reference in New Issue
Block a user