delete release
This commit is contained in:
parent
770d96d721
commit
6ffa314694
77
.drone.yml
77
.drone.yml
@ -40,45 +40,6 @@ volumes:
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: docker-release
|
|
||||||
concurrency:
|
|
||||||
limit: 1
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
metadata:
|
|
||||||
namespace: git
|
|
||||||
steps:
|
|
||||||
- name: Build site
|
|
||||||
image: node:current-bullseye
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /cache
|
|
||||||
environment:
|
|
||||||
YARN_CACHE_FOLDER: /cache/.yarn-docker-release
|
|
||||||
commands:
|
|
||||||
- yarn install
|
|
||||||
- yarn build
|
|
||||||
- name: build docker image
|
|
||||||
image: r.j3ss.co/img
|
|
||||||
privileged: true
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /cache
|
|
||||||
environment:
|
|
||||||
TOKEN:
|
|
||||||
from_secret: docker_hub
|
|
||||||
commands:
|
|
||||||
- img login -u voidic -p $TOKEN
|
|
||||||
- img build -t voidic/snort:${DRONE_TAG} --platform linux/amd64,linux/arm64 -f Dockerfile.prebuilt .
|
|
||||||
- img push voidic/snort:${DRONE_TAG}
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
claim:
|
|
||||||
name: docker-cache
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: test-lint
|
name: test-lint
|
||||||
concurrency:
|
concurrency:
|
||||||
limit: 1
|
limit: 1
|
||||||
@ -102,3 +63,41 @@ volumes:
|
|||||||
- name: cache
|
- name: cache
|
||||||
claim:
|
claim:
|
||||||
name: docker-cache
|
name: docker-cache
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: crowdin
|
||||||
|
concurrency:
|
||||||
|
limit: 1
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
metadata:
|
||||||
|
namespace: git
|
||||||
|
steps:
|
||||||
|
- name: Push/Pull translations
|
||||||
|
image: node:current-bullseye
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
environment:
|
||||||
|
YARN_CACHE_FOLDER: /cache/.yarn-translations
|
||||||
|
TOKEN:
|
||||||
|
from_secret: gitea
|
||||||
|
CTOKEN:
|
||||||
|
from_secret: crowdin
|
||||||
|
commands:
|
||||||
|
- git config --global user.email drone@v0l.io
|
||||||
|
- git config --global user.name "Drone CI"
|
||||||
|
- git remote set-url origin https://drone:$TOKEN@git.v0l.io/Kieran/snort.git
|
||||||
|
- yarn install
|
||||||
|
- npx @crowdin/cli upload sources -b main -T $CTOKEN
|
||||||
|
- npx @crowdin/cli pull -b main -T $CTOKEN
|
||||||
|
- yarn workspace @snort/app format
|
||||||
|
- git add .
|
||||||
|
- 'git commit -a -m "chore: Update translations"'
|
||||||
|
- git push -u origin main
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
claim:
|
||||||
|
name: docker-cache
|
Loading…
x
Reference in New Issue
Block a user