From 21057e72fcdf8d4ec0bc1d76587fc653fbb4725a Mon Sep 17 00:00:00 2001 From: Kieran Date: Sun, 14 May 2023 22:15:34 +0100 Subject: [PATCH] setup drone build --- .drone.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..cbcf70a6 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,37 @@ +--- +kind: pipeline +type: kubernetes +name: default + +metadata: + namespace: git + +steps: + - name: Update Translations + image: crowdin/cli + environment: + TOKEN: + from_secret: crowdin_token + commands: + - crowdin pull -b main -T $TOKEN + - yarn workspace @snort/app format + - git commit -a -m "Update translations" +--- +kind: pipeline +type: kubernetes +name: default + +metadata: + namespace: git + +steps: + - name: build docker image + image: r.j3ss.co/img + privileged: true + environment: + TOKEN: + from_secret: img_token + commands: + - img login -u kieran -p $TOKEN git.v0l.io + - img build -t git.v0l.io/kieran/snort:latest . + - img push git.v0l.io/kieran/snort:latest \ No newline at end of file