Drone config for building & publishing

This commit is contained in:
2023-11-04 16:04:20 +01:00
parent 78187f8f55
commit 60e9763ecb

41
.drone.yml Normal file
View File

@@ -0,0 +1,41 @@
---
kind: pipeline
type: docker
name: Build and publish
platform:
os: linux
arch: amd64
steps:
- name: lint
image: node:21-alpine3.17
commands:
- yarn
- yarn lint
- name: build
image: node:21-alpine3.17
commands:
- yarn
- yarn build
- name: Build and publish docker image
image: plugins/docker
settings:
registry: ghcr.io
repo: ghcr.io/kevinmidboe/k9e.no
dockerfile: Dockerfile
username:
from_secret: GITHUB_USERNAME
password:
from_secret: GITHUB_PASSWORD
tags: latest
when:
event:
include:
- push
exclude:
- pull_request
branch:
- main