Init
This commit is contained in:
commit
06d0735bf7
5 changed files with 106 additions and 0 deletions
10
README.md
Normal file
10
README.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# CI configs
|
||||||
|
|
||||||
|
This repository contains my drone CI config files.
|
||||||
|
|
||||||
|
## Configs
|
||||||
|
|
||||||
|
- [Docker](docker.yaml)
|
||||||
|
- [Minecraft Mod](mcmod.yaml)
|
||||||
|
- [Zola Website](website.yaml)
|
||||||
|
- [mdBook Docs](docs.yaml)
|
18
docker.yaml
Normal file
18
docker.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username: root
|
||||||
|
password:
|
||||||
|
from_secret: docker_pw
|
||||||
|
repo: dock.tilera.xyz/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
|
||||||
|
registry: dock.tilera.xyz
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
when:
|
||||||
|
event: tag
|
27
docs.yaml
Normal file
27
docs.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: ghcr.io/peaceiris/docker-mdbook/mdbook:v0.4.4
|
||||||
|
entrypoint: [ /usr/bin/mdbook ]
|
||||||
|
command:
|
||||||
|
- build
|
||||||
|
- name: publish
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
settings:
|
||||||
|
host: web.tilera.xyz
|
||||||
|
username: webmaster
|
||||||
|
password:
|
||||||
|
from_secret: web_pw
|
||||||
|
port: 2220
|
||||||
|
target: /home/webmaster/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
|
||||||
|
source: public/*
|
||||||
|
rm: true
|
||||||
|
strip_components: 1
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
depends_on:
|
||||||
|
- build
|
24
mcmod.yaml
Normal file
24
mcmod.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: adoptopenjdk/openjdk8
|
||||||
|
commands:
|
||||||
|
- chmod +x gradlew
|
||||||
|
- ./gradlew build
|
||||||
|
- name: publish
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
base_url: https://git.tilera.org
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
note: CHANGELOG.md
|
||||||
|
title: tag-${DRONE_TAG}
|
||||||
|
files:
|
||||||
|
- build/libs/*
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
depends_on:
|
||||||
|
- build
|
27
website.yaml
Normal file
27
website.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: ghcr.io/getzola/zola:v0.15.3
|
||||||
|
entrypoint: [ /bin/zola ]
|
||||||
|
command:
|
||||||
|
- build
|
||||||
|
- name: upload
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
settings:
|
||||||
|
host: git.tilera.org
|
||||||
|
username: webmaster
|
||||||
|
password:
|
||||||
|
from_secret: web_pw
|
||||||
|
port: 2220
|
||||||
|
target: /home/webmaster/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
|
||||||
|
source: public/*
|
||||||
|
rm: true
|
||||||
|
strip_components: 1
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
depends_on:
|
||||||
|
- build
|
Loading…
Reference in a new issue