forked from Kieran/snort
build release on tag in drone
This commit is contained in:
parent
6ba0361ba9
commit
a274fb12a6
46
.drone.yml
46
.drone.yml
@ -79,6 +79,48 @@ 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: img_token
|
||||||
|
commands:
|
||||||
|
- img login -u kieran -p $TOKEN git.v0l.io
|
||||||
|
- |-
|
||||||
|
img build -t git.v0l.io/kieran/snort:${DRONE_TAG} \
|
||||||
|
--platform linux/amd64,linux/arm64 \
|
||||||
|
-f Dockerfile.prebuilt .
|
||||||
|
- img push git.v0l.io/kieran/snort:latest
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
claim:
|
||||||
|
name: docker-cache
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
name: test-lint
|
name: test-lint
|
||||||
concurrency:
|
concurrency:
|
||||||
limit: 1
|
limit: 1
|
||||||
@ -94,8 +136,8 @@ steps:
|
|||||||
YARN_CACHE_FOLDER: /cache/.yarn-test
|
YARN_CACHE_FOLDER: /cache/.yarn-test
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn workspace @snort/nostr build
|
- yarn build
|
||||||
- yarn workspace @snort/app test
|
- yarn test
|
||||||
- yarn workspace @snort/app eslint
|
- yarn workspace @snort/app eslint
|
||||||
- yarn workspace @snort/app prettier --check .
|
- yarn workspace @snort/app prettier --check .
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user