From 770d96d721de3aea3dddb39dddb6308b2e90f26d Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 3 Jul 2023 13:16:16 +0100 Subject: [PATCH] delete crowdin --- .drone.yml | 54 ++++++++---------------------------------------------- 1 file changed, 8 insertions(+), 46 deletions(-) diff --git a/.drone.yml b/.drone.yml index 08dd8c17..5d9ef035 100644 --- a/.drone.yml +++ b/.drone.yml @@ -31,7 +31,7 @@ steps: from_secret: docker_hub commands: - img login -u voidic -p $TOKEN - - 'img build -t voidic/snort:latest --platform linux/amd64 --platform linux/arm64 -f Dockerfile.prebuilt .' + - img build -t voidic/snort:latest --platform linux/amd64,linux/arm64 -f Dockerfile.prebuilt . - img push voidic/snort:latest volumes: - name: cache @@ -70,12 +70,12 @@ steps: from_secret: docker_hub commands: - img login -u voidic -p $TOKEN - - 'img build -t voidic/snort:${DRONE_TAG} --platform linux/amd64 --platform linux/arm64 -f Dockerfile.prebuilt .' + - 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 +- name: cache + claim: + name: docker-cache --- kind: pipeline type: kubernetes @@ -99,44 +99,6 @@ steps: - yarn workspace @snort/app eslint - yarn workspace @snort/app prettier --check . volumes: - - name: cache - claim: - 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 \ No newline at end of file +- name: cache + claim: + name: docker-cache