This commit is contained in:
@@ -15,4 +15,19 @@ steps:
|
|||||||
username: akulovsergei
|
username: akulovsergei
|
||||||
password:
|
password:
|
||||||
from_secret: docker_token
|
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
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
CMD ["python", "run.py"]
|
CMD ["python", "run.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user