fix: remove drone

This commit is contained in:
nyyu 2023-03-18 19:51:23 +01:00
parent daa804baf1
commit 5e10a5b998
8 changed files with 0 additions and 240 deletions

View file

@ -1,20 +0,0 @@
pkgbase = drone-runner-docker
pkgdesc = Drone pipeline runner that executes builds inside Docker containers
pkgver = 1.8.3
pkgrel = 1
url = https://drone.io
arch = x86_64
license = custom
makedepends = go
makedepends = git
depends = docker
options = !lto
backup = etc/drone/agent
source = git+https://github.com/drone-runners/drone-runner-docker.git#tag=v1.8.3
source = drone-agent.service
source = agent.conf
sha256sums = SKIP
sha256sums = a739e3efeffdf93dd13ba4947608ecd17ea585473de55a2323f6f3e89f787dca
sha256sums = 2c1a13f0d4bf83c1716db1b3179f38da7b9f0e762f781a8a6ab13cc683f057fe
pkgname = drone-runner-docker

View file

@ -1,66 +0,0 @@
# Maintainer: Sl@ny <webmaster [at] slany [dot] work>
pkgname=drone-runner-docker
pkgver=1.8.3
pkgrel=1
pkgdesc='Drone pipeline runner that executes builds inside Docker containers'
arch=('x86_64')
url="https://drone.io"
license=('custom')
makedepends=('go' 'git')
options=('!lto')
depends=('docker')
backup=('etc/drone/agent')
source=(git+https://github.com/drone-runners/$pkgname.git#tag=v$pkgver
'drone-agent.service'
'agent.conf')
sha256sums=('SKIP'
'a739e3efeffdf93dd13ba4947608ecd17ea585473de55a2323f6f3e89f787dca'
'2c1a13f0d4bf83c1716db1b3179f38da7b9f0e762f781a8a6ab13cc683f057fe')
prepare() {
cd "$pkgname"
# create directory for build output
mkdir -p build
# download dependencies
go mod download
}
build() {
cd "$pkgname"
# set Go flags
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
go build -v \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
-o build \
.
}
package() {
# service
install -Dm644 drone-agent.service "$pkgdir/usr/lib/systemd/system/drone-agent.service"
# config
install -Dm644 agent.conf "$pkgdir/etc/drone/agent"
cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" build/*
# licenses
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" licenses/* LICENSE.md
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md CHANGELOG.md
}

View file

@ -1,5 +0,0 @@
# agent configuration
#DRONE_RPC_PROTO=http
#DRONE_RPC_HOST=
#DRONE_RPC_SECRET=""

View file

@ -1,20 +0,0 @@
[Unit]
Description=Drone Runner (Docker)
After=network.target
[Service]
User=drone-agent
Group=docker
Type=simple
EnvironmentFile=/etc/drone/agent
ExecStart=/usr/bin/drone-runner-docker
ExecReload=/usr/bin/kill -HUP $MAINPID
Restart=on-failure
KillSignal=SIGINT
LimitNOFILE=8192
PrivateDevices=yes
DynamicUser=yes
ReadWritePaths=/var/run/docker.sock
[Install]
WantedBy=multi-user.target

View file

@ -1,19 +0,0 @@
pkgbase = drone
pkgdesc = Drone is a Continuous Delivery platform built on Docker, written in Go - Free enterprise variant
pkgver = 2.16.0
pkgrel = 1
url = https://drone.io
arch = x86_64
license = custom
makedepends = go
makedepends = git
options = !lto
backup = etc/drone/server
source = git+https://github.com/drone/drone.git#tag=v2.16.0
source = drone.service
source = server.conf
sha256sums = SKIP
sha256sums = 3cd219b1c5611b9ff4211d4837dff11228d9a491cd41d21f4c60af77c8c21d5c
sha256sums = 2b8957cd6b9f9ee6e8d831f58b0ef3fac2170a56f6259884ec7d30c3ba38c73a
pkgname = drone

View file

@ -1,65 +0,0 @@
# Maintainer: Sl@ny <webmaster [at] slany [dot] work>
pkgname=drone
pkgver=2.16.0
pkgrel=1
pkgdesc="Drone is a Continuous Delivery platform built on Docker, written in Go - Free enterprise variant"
arch=('x86_64')
url="https://drone.io"
license=('custom')
makedepends=('go' 'git')
options=('!lto')
backup=('etc/drone/server')
source=(git+https://github.com/drone/drone.git#tag=v$pkgver
'drone.service'
'server.conf')
sha256sums=('SKIP'
'3cd219b1c5611b9ff4211d4837dff11228d9a491cd41d21f4c60af77c8c21d5c'
'2b8957cd6b9f9ee6e8d831f58b0ef3fac2170a56f6259884ec7d30c3ba38c73a')
prepare() {
cd "$pkgname"
mkdir build
go mod download
}
build() {
cd "$pkgname"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
local COMMON_FLAGS=(
-trimpath
-buildmode=pie
-mod=readonly
-modcacherw
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\""
)
go build \
"${COMMON_FLAGS[@]}" \
-tags "nolimit" \
-o build \
./cmd/...
}
check() {
cd "$pkgname"
go test -v ./...
}
package() {
# service
install -Dm644 drone.service "$pkgdir/usr/lib/systemd/system/drone.service"
# config
install -Dm644 server.conf "$pkgdir/etc/drone/server"
cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" build/*
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE NOTICE
}

View file

@ -1,19 +0,0 @@
[Unit]
Description=Drone Continuous Integration platform server
After=network.target
[Service]
User=drone
Type=simple
EnvironmentFile=/etc/drone/server
ExecStart=/usr/bin/drone-server
ExecReload=/usr/bin/kill -HUP $MAINPID
Restart=on-failure
KillSignal=SIGINT
LimitNOFILE=8192
PrivateDevices=yes
DynamicUser=yes
StateDirectory=drone
[Install]
WantedBy=multi-user.target

View file

@ -1,26 +0,0 @@
# drone server configuration
# database configuration
DRONE_DATABASE_DRIVER=sqlite3
DRONE_DATABASE_DATASOURCE=/var/lib/drone/drone.sqlite
# remote configuration
DRONE_GITHUB_CLIENT_ID=""
DRONE_GITHUB_CLIENT_SECRET=""
DRONE_GIT_ALWAYS_AUTH=false
# server
DRONE_SERVER_HOST="drone.exemple.com"
DRONE_SERVER_PROTO="https"
DRONE_SERVER_PORT=:8080
# secret
DRONE_RPC_SECRET=""
# access configuration
DRONE_USER_CREATE=
DRONE_USER_FILTER=
DRONE_REGISTRATION_CLOSED=false
# debug
DRONE_LOGS_DEBUG=false