chore: update drone.yml

This commit is contained in:
Kieran 2023-05-15 11:16:47 +01:00
parent d115b93eb1
commit 2ebe06aa35
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -7,7 +7,11 @@ metadata:
steps: steps:
- name: Push/Pull translations - name: Push/Pull translations
image: node:current-bullseye image: node:current-bullseye
volumes:
- name: cache
path: /docker-cache
environment: environment:
YARN_CACHE_FOLDER: /docker-cache/yarn
TOKEN: TOKEN:
from_secret: drone_gitea from_secret: drone_gitea
CTOKEN: CTOKEN:
@ -26,6 +30,10 @@ steps:
- git add . - git add .
- git commit -a -m "Update translations" - git commit -a -m "Update translations"
- git push -u origin lang - git push -u origin lang
volumes:
- name: cache
claim:
name: docker-cache
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
@ -64,9 +72,18 @@ metadata:
steps: steps:
- name: Test/Lint - name: Test/Lint
image: node:current-bullseye image: node:current-bullseye
volumes:
- name: cache
path: /docker-cache
environment:
YARN_CACHE_FOLDER: /docker-cache/yarn
commands: commands:
- yarn install - yarn install
- yarn workspace @snort/nostr build - yarn workspace @snort/nostr build
- yarn workspace @snort/app test - yarn workspace @snort/app test
- yarn workspace @snort/app eslint - yarn workspace @snort/app eslint
- yarn workspace @snort/app prettier --check . - yarn workspace @snort/app prettier --check .
volumes:
- name: cache
claim:
name: docker-cache