linac/.drone.yml

45 lines
743 B
YAML

kind: pipeline
type: docker
name: lint
trigger:
branch:
- dev
steps:
- name: "Build Script"
image: ubuntu
pull: if-not-exists
commands:
- mkdir build
- ./linac build linac.build
- name: "Static Analysis"
image: koalaman/shellcheck-alpine:stable
pull: if-not-exists
commands:
- shellcheck --version
- shellcheck ./build/*
---
kind: pipeline
name: release
trigger:
event:
- tag
steps:
- name: "Create Gitea Release"
image: plugins/gitea-release
settings:
api_key:
from_secret: api_key
base_url: https://git.thisisjoes.site
files: linac
checksum:
- md5
- sha512
title: "Automated Release"
prerelease: true