Also deploy on cron event
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
26383b76cb
commit
3ba404dc69
1 changed files with 36 additions and 35 deletions
71
.drone.yml
71
.drone.yml
|
|
@ -8,42 +8,43 @@ platform:
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: generate
|
- name: generate
|
||||||
image: python:3.11-slim
|
image: python:3.11-slim
|
||||||
environment:
|
environment:
|
||||||
S3_ENDPOINT_URL: https://blob.nemunai.re
|
S3_ENDPOINT_URL: https://blob.nemunai.re
|
||||||
S3_BUCKET: happydomain-dl
|
S3_BUCKET: happydomain-dl
|
||||||
S3_REGION: garage
|
S3_REGION: garage
|
||||||
AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
from_secret: s3_access_key
|
from_secret: s3_access_key
|
||||||
AWS_SECRET_ACCESS_KEY:
|
AWS_SECRET_ACCESS_KEY:
|
||||||
from_secret: s3_secret_key
|
from_secret: s3_secret_key
|
||||||
LOG_LEVEL: INFO
|
LOG_LEVEL: INFO
|
||||||
commands:
|
commands:
|
||||||
- pip install --no-cache-dir -r requirements.txt
|
- pip install --no-cache-dir -r requirements.txt
|
||||||
- python generator.py
|
- python generator.py
|
||||||
- ls -lR output/
|
- ls -lR output/
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
settings:
|
settings:
|
||||||
endpoint: https://blob.nemunai.re
|
endpoint: https://blob.nemunai.re
|
||||||
region: garage
|
region: garage
|
||||||
path_style: true
|
path_style: true
|
||||||
bucket: happydomain-dl
|
bucket: happydomain-dl
|
||||||
access_key:
|
access_key:
|
||||||
from_secret: s3_access_key
|
from_secret: s3_access_key
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: s3_secret_key
|
from_secret: s3_secret_key
|
||||||
source: output/**/*
|
source: output/**/*
|
||||||
target: /
|
target: /
|
||||||
strip_prefix: output/
|
strip_prefix: output/
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
- cron
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- cron
|
- cron
|
||||||
- push
|
- push
|
||||||
- tag
|
- tag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue