Docker, API proxy, Drone CI, .env
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-push
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: oven/bun:1-alpine
|
||||
commands:
|
||||
- bun install --frozen-lockfile
|
||||
- bun run test
|
||||
|
||||
- name: build
|
||||
image: oven/bun:1-alpine
|
||||
commands:
|
||||
- bun install --frozen-lockfile
|
||||
- bun run build:ssr
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: registry.zea.lt/miczek/tracker
|
||||
registry: registry.zea.lt
|
||||
username:
|
||||
from_secret: registry_username
|
||||
password:
|
||||
from_secret: registry_password
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:7}
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
- master
|
||||
depends_on:
|
||||
- build
|
||||
Reference in New Issue
Block a user