2023-05-14 21:15:34 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
2023-05-14 21:17:45 +00:00
|
|
|
name: crowdin
|
2023-05-14 21:15:34 +00:00
|
|
|
metadata:
|
|
|
|
namespace: git
|
|
|
|
steps:
|
|
|
|
- name: Update Translations
|
|
|
|
image: crowdin/cli
|
|
|
|
environment:
|
|
|
|
TOKEN:
|
|
|
|
from_secret: crowdin_token
|
|
|
|
commands:
|
2023-05-15 09:15:12 +00:00
|
|
|
- crowdin upload -b main -T $TOKEN
|
2023-05-14 21:15:34 +00:00
|
|
|
- crowdin pull -b main -T $TOKEN
|
2023-05-14 21:36:54 +00:00
|
|
|
- name: Push changes
|
|
|
|
image: node:current-bullseye
|
|
|
|
commands:
|
2023-05-14 21:52:37 +00:00
|
|
|
- yarn install
|
|
|
|
- yarn workspace @snort/app format
|
2023-05-14 21:36:54 +00:00
|
|
|
- apt update && apt install git -y
|
|
|
|
- git switch lang
|
2023-05-14 21:15:34 +00:00
|
|
|
- git commit -a -m "Update translations"
|
2023-05-14 21:36:54 +00:00
|
|
|
- git push --force
|
2023-05-14 21:15:34 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
2023-05-14 21:17:45 +00:00
|
|
|
name: docker
|
2023-05-14 21:15:34 +00:00
|
|
|
metadata:
|
|
|
|
namespace: git
|
|
|
|
steps:
|
|
|
|
- name: build docker image
|
|
|
|
image: r.j3ss.co/img
|
|
|
|
privileged: true
|
2023-05-14 21:26:57 +00:00
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /docker-cache
|
2023-05-14 21:15:34 +00:00
|
|
|
environment:
|
|
|
|
TOKEN:
|
|
|
|
from_secret: img_token
|
|
|
|
commands:
|
|
|
|
- img login -u kieran -p $TOKEN git.v0l.io
|
2023-05-15 09:15:12 +00:00
|
|
|
- |-
|
|
|
|
img build -t git.v0l.io/kieran/snort:latest \
|
2023-05-14 21:26:57 +00:00
|
|
|
--platform linux/amd64,linux/arm64 \
|
|
|
|
--cache-from "type=local,src=/docker-cache" \
|
|
|
|
--cache-to "type=local,dest=/docker-cache" \
|
|
|
|
.
|
|
|
|
- img push git.v0l.io/kieran/snort:latest
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
claim:
|
2023-05-14 21:52:37 +00:00
|
|
|
name: docker-cache
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: test-lint
|
|
|
|
metadata:
|
|
|
|
namespace: git
|
|
|
|
steps:
|
|
|
|
- name: Test/Lint
|
|
|
|
image: node:current-bullseye
|
|
|
|
commands:
|
|
|
|
- yarn install
|
|
|
|
- yarn workspace @snort/nostr build
|
|
|
|
- yarn workspace @snort/app test
|
|
|
|
- yarn workspace @snort/app eslint
|
|
|
|
- yarn workspace @snort/app prettier --check .
|