diff --git a/.drone.yml b/.drone.yml index 02db3f1..1027038 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,42 +8,43 @@ platform: arch: arm64 steps: -- name: generate - image: python:3.11-slim - environment: - S3_ENDPOINT_URL: https://blob.nemunai.re - S3_BUCKET: happydomain-dl - S3_REGION: garage - AWS_ACCESS_KEY_ID: - from_secret: s3_access_key - AWS_SECRET_ACCESS_KEY: - from_secret: s3_secret_key - LOG_LEVEL: INFO - commands: - - pip install --no-cache-dir -r requirements.txt - - python generator.py - - ls -lR output/ + - name: generate + image: python:3.11-slim + environment: + S3_ENDPOINT_URL: https://blob.nemunai.re + S3_BUCKET: happydomain-dl + S3_REGION: garage + AWS_ACCESS_KEY_ID: + from_secret: s3_access_key + AWS_SECRET_ACCESS_KEY: + from_secret: s3_secret_key + LOG_LEVEL: INFO + commands: + - pip install --no-cache-dir -r requirements.txt + - python generator.py + - ls -lR output/ -- name: deploy - image: plugins/s3 - settings: - endpoint: https://blob.nemunai.re - region: garage - path_style: true - bucket: happydomain-dl - access_key: - from_secret: s3_access_key - secret_key: - from_secret: s3_secret_key - source: output/**/* - target: / - strip_prefix: output/ - when: - event: - - push + - name: deploy + image: plugins/s3 + settings: + endpoint: https://blob.nemunai.re + region: garage + path_style: true + bucket: happydomain-dl + access_key: + from_secret: s3_access_key + secret_key: + from_secret: s3_secret_key + source: output/**/* + target: / + strip_prefix: output/ + when: + event: + - push + - cron trigger: event: - - cron - - push - - tag + - cron + - push + - tag