This commit is contained in:
93
.drone.yml
93
.drone.yml
@@ -79,3 +79,96 @@ steps:
|
||||
volumes:
|
||||
- name: "curse"
|
||||
path: "/out/curse"
|
||||
|
||||
|
||||
---
|
||||
kind: "pipeline"
|
||||
type: "docker"
|
||||
name: "[Debug] static release"
|
||||
|
||||
trigger:
|
||||
branch: "config"
|
||||
event:
|
||||
- "push"
|
||||
|
||||
volumes:
|
||||
- name: "tmp"
|
||||
temp: {}
|
||||
- name: "server"
|
||||
temp: {}
|
||||
- name: "client"
|
||||
temp: {}
|
||||
- name: "curse"
|
||||
temp: {}
|
||||
|
||||
steps:
|
||||
- name: "Run build tool"
|
||||
image: "gitea.marquis.site/operations/modpack_buildah"
|
||||
settings:
|
||||
# modpack__version: "${DRONE_TAG}"
|
||||
modpack__version: "1.0.19b"
|
||||
curseforge_apikey:
|
||||
from_secret: "curseforge_apikey"
|
||||
volumes:
|
||||
- name: "server"
|
||||
path: "/out/server"
|
||||
- name: "client"
|
||||
path: "/out/client"
|
||||
- name: "curse"
|
||||
path: "/out/curse"
|
||||
- name: "tmp"
|
||||
path: "/tmp/modpack_buildah"
|
||||
|
||||
- name: "Build and push server container image"
|
||||
image: "plugins/docker"
|
||||
privileged: true
|
||||
settings:
|
||||
dockerfile: "/out/server/Dockerfile"
|
||||
context: "/out/server"
|
||||
registry: "gitea.marquis.site"
|
||||
repo: "gitea.marquis.site/minecraft/atm8"
|
||||
# tags: "${DRONE_TAG}"
|
||||
tags:
|
||||
- "1.0.19b"
|
||||
- "${DRONE_COMMIT_SHA:0:8}"
|
||||
username: "drone-ci"
|
||||
password:
|
||||
from_secret: "gitea_registry_password"
|
||||
volumes:
|
||||
- name: "server"
|
||||
path: "/out/server"
|
||||
|
||||
- name: "Update client files in repository"
|
||||
image: "alpine/git"
|
||||
commands:
|
||||
- "pwd"
|
||||
- "ls -la"
|
||||
- "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}"
|
||||
commit_message: "Version 1.0.19b"
|
||||
|
||||
- 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}"
|
||||
files: "/out/curse/*-1.0.19b.zip"
|
||||
title: "Version 1.0.19b"
|
||||
volumes:
|
||||
- name: "curse"
|
||||
path: "/out/curse"
|
||||
|
||||
Reference in New Issue
Block a user