Added configuration files
Some checks failed
continuous-integration/drone/tag Build encountered an error

This commit is contained in:
Adrian Marquis
2023-05-27 16:23:20 +02:00
parent 5386f164b9
commit e9e0fa4456
4 changed files with 165 additions and 0 deletions

78
.drone.yml Normal file
View File

@@ -0,0 +1,78 @@
---
kind: "pipeline"
type: "docker"
name: "Create Release from tag"
trigger:
event:
- "tag"
volumes:
- name: "tmp"
temp: {}
- name: "server"
temp: {}
- name: "client"
temp: {}
- name: "curse"
temp: {}
steps:
- name: "Run build tool"
image: "gitea.marquis.site/operatiońs/modpack_buildah"
volumes:
- name: "server"
path: "/out/server"
- name: "client"
path: "/out/client"
- name: "curse"
path: "/out/curse"
- name: "tmp"
path: "/tmp/modpack_buildah"
settings:
modpack__version: "$DRONE_TAG"
curseforge_apikey:
from_secret: "curseforge_apikey"
- name: "Build and push server container image"
image: "plugins/docker"
settings:
registry: "gitea.marquis.site"
repo: "gitea.marquis.site/minecraft/atm8"
username: "drone-ci"
password:
from_secret: "gitea_registry_password"
tags: "$DRONE_TAG"
volumes:
- name: "server"
path: "/out/server"
- name: "Update client files in repository"
image: "bash"
commands:
- "git checkout master"
- "git pull"
- "cp -r /out/client/* ."
volumes:
- name: "client"
path: "/out/client"
- name: "Push new client version to repository"
image: "appleboy/drone-git-push"
settings:
branch: "master"
remote_name: "origin"
commit: true
commit_message: "Version $DRONE_TAG"
- name: "Create Gitea Release for curse modpack"
image: "plugins/gitea-release"
settings:
api_key:
from_secret: "gitea_registry_password"
base_url: "gitea.marquis.site"
files: "/out/curse/*-$DRONE_TAG.zip"
title: "Version $DRONE_TAG"
volumes:
- name: "curse"
path: "/out/curse"