From 60e9763ecb9b8fcc7b428edd01f8d9d0fc10e5a1 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sat, 4 Nov 2023 16:04:20 +0100 Subject: [PATCH] Drone config for building & publishing --- .drone.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..be8f349 --- /dev/null +++ b/.drone.yml @@ -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