mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 15:03:33 +08:00
more woodpecking
This commit is contained in:
parent
bdda4696a4
commit
9750c70192
5
.woodpecker/Dockerfile
Normal file
5
.woodpecker/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM python:3.12
|
||||||
|
RUN apt update && apt -y upgrade && apt -y --no-install-recommends install libopenal-dev libsdl2-dev libvorbis-dev cmake clang-format rsync
|
||||||
|
RUN pip install --upgrade pip
|
||||||
|
COPY ../config/requirements.txt ballistica_requirements.txt
|
||||||
|
RUN pip install -r ballistica_requirements.txt
|
||||||
14
.woodpecker/ballistica_dev_image.yaml
Normal file
14
.woodpecker/ballistica_dev_image.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
when:
|
||||||
|
- event: manual
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: buildx
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
dockerfile: .woodpecker/Dockerfile
|
||||||
|
registry: codeberg.org
|
||||||
|
repo: ${CI_REPO}-dev
|
||||||
|
tag: latest
|
||||||
|
username: ${CI_REPO_OWNER}
|
||||||
|
password:
|
||||||
|
from_secret: ACCESS_TOKEN
|
||||||
@ -1,9 +1,10 @@
|
|||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
ref: refs/tags/v*
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: 3ra0/ballistica:dev
|
image: codeberg.org/3ra/ballistica-dev:latest
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- make prefab-linux-x86-64-gui-debug-build
|
- make prefab-linux-x86-64-gui-debug-build
|
||||||
@ -16,7 +17,5 @@ steps:
|
|||||||
from_secret: ACCESS_TOKEN
|
from_secret: ACCESS_TOKEN
|
||||||
files:
|
files:
|
||||||
- 'ballisticakit_linux_x86_64.tar.xz'
|
- 'ballisticakit_linux_x86_64.tar.xz'
|
||||||
prerelease: true
|
title: ${CI_COMMIT_TAG}
|
||||||
note: 'These are automated debug prefab builds; use them for testing purposes only.'
|
|
||||||
title: 'auto pre-release'
|
|
||||||
depends_on: [build]
|
depends_on: [build]
|
||||||
@ -1,18 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: push
|
|
||||||
|
|
||||||
skip_clone: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: tag
|
|
||||||
image: alpine/curl
|
|
||||||
environment:
|
|
||||||
ACCESS_TOKEN:
|
|
||||||
from_secret: ACCESS_TOKEN
|
|
||||||
commands:
|
|
||||||
- >-
|
|
||||||
curl -s -o /dev/null -X "DELETE" "https://codeberg.org/api/v1/repos/$CI_REPO/releases/tags/auto.latest" -H "accept: application/json" -H "Authorization: token $ACCESS_TOKEN"
|
|
||||||
- >-
|
|
||||||
curl -s -o /dev/null -X "DELETE" "https://codeberg.org/api/v1/repos/$CI_REPO/tags/auto.latest" -H "accept: application/json" -H "Authorization: token $ACCESS_TOKEN"
|
|
||||||
- >-
|
|
||||||
if [ $(curl -s -o /dev/null -w "%{http_code}" -X "POST" "https://codeberg.org/api/v1/repos/$CI_REPO/tags" -H "accept: application/json" -H "Authorization: token $ACCESS_TOKEN" -H "Content-Type: application/json" -d "{\"message\": \"AUTO TRIGGER TAG\", \"tag_name\": \"auto.latest\", \"target\": \"$CI_COMMIT_SHA\"}") != "201" ]; then exit 1; fi
|
|
||||||
Loading…
x
Reference in New Issue
Block a user