Skip to content

Commit 5e40048

Browse files
authored
use slim python as base image, trigger update only on dev (#10)
1 parent 9513740 commit 5e40048

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.drone.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ steps:
1919
cache_from:
2020
- "registry.dev.onetask.ai/${DRONE_REPO}:dev"
2121
- "registry.dev.onetask.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}"
22+
23+
trigger:
24+
event:
25+
- push
26+
27+
---
28+
kind: pipeline
29+
type: docker
30+
name: trigger update
31+
32+
platform:
33+
arch: amd64
34+
35+
steps:
2236
- name: trigger update
2337
image: appleboy/drone-ssh
2438
settings:
@@ -32,7 +46,12 @@ steps:
3246
script:
3347
- /bin/sh ./trigger_dev_deployment.sh
3448

49+
depends_on:
50+
- amd64
51+
3552
trigger:
53+
branch:
54+
- dev
3655
event:
3756
- push
3857

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9
1+
FROM python:3.9-slim
22

33
RUN apt update && apt install -y curl
44

@@ -7,4 +7,3 @@ COPY . .
77
RUN pip3 install -r requirements.txt
88

99
ENTRYPOINT ["/run.sh"]
10-

0 commit comments

Comments
 (0)