chore: update drone.yml
This commit is contained in:
parent
064bc1f0af
commit
6fa242c5f9
27
.drone.yml
27
.drone.yml
@ -2,10 +2,8 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: crowdin
|
name: crowdin
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
namespace: git
|
namespace: git
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Update Translations
|
- name: Update Translations
|
||||||
image: crowdin/cli
|
image: crowdin/cli
|
||||||
@ -17,7 +15,8 @@ steps:
|
|||||||
- name: Push changes
|
- name: Push changes
|
||||||
image: node:current-bullseye
|
image: node:current-bullseye
|
||||||
commands:
|
commands:
|
||||||
- npx yarn workspace @snort/app format
|
- yarn install
|
||||||
|
- yarn workspace @snort/app format
|
||||||
- apt update && apt install git -y
|
- apt update && apt install git -y
|
||||||
- git switch lang
|
- git switch lang
|
||||||
- git commit -a -m "Update translations"
|
- git commit -a -m "Update translations"
|
||||||
@ -26,10 +25,8 @@ steps:
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: docker
|
name: docker
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
namespace: git
|
namespace: git
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build docker image
|
- name: build docker image
|
||||||
image: r.j3ss.co/img
|
image: r.j3ss.co/img
|
||||||
@ -42,8 +39,7 @@ steps:
|
|||||||
from_secret: img_token
|
from_secret: img_token
|
||||||
commands:
|
commands:
|
||||||
- img login -u kieran -p $TOKEN git.v0l.io
|
- img login -u kieran -p $TOKEN git.v0l.io
|
||||||
- |-
|
- img build -t git.v0l.io/kieran/snort:latest \
|
||||||
img build -t git.v0l.io/kieran/snort:latest \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--cache-from "type=local,src=/docker-cache" \
|
--cache-from "type=local,src=/docker-cache" \
|
||||||
--cache-to "type=local,dest=/docker-cache" \
|
--cache-to "type=local,dest=/docker-cache" \
|
||||||
@ -52,4 +48,19 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
claim:
|
claim:
|
||||||
name: docker-cache
|
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 .
|
27
.github/workflows/docker.yaml
vendored
27
.github/workflows/docker.yaml
vendored
@ -1,27 +0,0 @@
|
|||||||
name: Docker build
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.repository_owner }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: docker/setup-qemu-action@v2
|
|
||||||
- uses: docker/setup-buildx-action@v2
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: |
|
|
||||||
docker buildx build \
|
|
||||||
-t ghcr.io/${{ github.repository_owner }}/snort:latest \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
|
||||||
--cache-from "type=local,src=/tmp/.buildx-cache" \
|
|
||||||
--cache-to "type=local,dest=/tmp/.buildx-cache" \
|
|
||||||
--push .
|
|
24
.github/workflows/test-lint.yaml
vendored
24
.github/workflows/test-lint.yaml
vendored
@ -1,24 +0,0 @@
|
|||||||
name: Test+Lint
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
jobs:
|
|
||||||
test_and_lint:
|
|
||||||
timeout-minutes: 15
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 19
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: yarn install
|
|
||||||
- name: Build packages
|
|
||||||
run: yarn workspace @snort/nostr build
|
|
||||||
- name: Run tests
|
|
||||||
run: yarn workspace @snort/app test
|
|
||||||
- name: Check Eslint
|
|
||||||
run: yarn workspace @snort/app eslint
|
|
||||||
- name: Check Formatting
|
|
||||||
run: yarn workspace @snort/app prettier --check .
|
|
Loading…
x
Reference in New Issue
Block a user