Drone CI config

This commit is contained in:
2023-05-19 18:11:54 +02:00
parent b20661dc20
commit e513742c6e

38
.drone.yml Normal file
View File

@@ -0,0 +1,38 @@
---
kind: pipeline
type: docker
name: Build and publish
platform:
os: linux
arch: amd64
steps:
- name: build
image: ruby:3.1-slim-bullseye
commands:
- apt update && apt install -y --no-install-recommends build-essential git
- gem update --system && gem install jekyll bundler
- bundle install
- jekyll build
- name: Build and publish docker image
image: plugins/docker
settings:
registry: ghcr.io
repo: ghcr.io/kevinmidboe/schleppe-lab
dockerfile: Dockerfile
username:
from_secret: GITHUB_USERNAME
password:
from_secret: GITHUB_PASSWORD
tags: latest
when:
event:
include:
- push
exclude:
- pull_request
branch:
- main