From 5e10a5b998befade8d1255c9b724aeaff48fd4e2 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sat, 18 Mar 2023 19:51:23 +0100 Subject: [PATCH] fix: remove drone --- drone-runner-docker/.SRCINFO | 20 -------- drone-runner-docker/PKGBUILD | 66 ------------------------- drone-runner-docker/agent.conf | 5 -- drone-runner-docker/drone-agent.service | 20 -------- drone/.SRCINFO | 19 ------- drone/PKGBUILD | 65 ------------------------ drone/drone.service | 19 ------- drone/server.conf | 26 ---------- 8 files changed, 240 deletions(-) delete mode 100644 drone-runner-docker/.SRCINFO delete mode 100644 drone-runner-docker/PKGBUILD delete mode 100644 drone-runner-docker/agent.conf delete mode 100644 drone-runner-docker/drone-agent.service delete mode 100644 drone/.SRCINFO delete mode 100644 drone/PKGBUILD delete mode 100644 drone/drone.service delete mode 100644 drone/server.conf diff --git a/drone-runner-docker/.SRCINFO b/drone-runner-docker/.SRCINFO deleted file mode 100644 index dc1d360..0000000 --- a/drone-runner-docker/.SRCINFO +++ /dev/null @@ -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 diff --git a/drone-runner-docker/PKGBUILD b/drone-runner-docker/PKGBUILD deleted file mode 100644 index 57cb9d2..0000000 --- a/drone-runner-docker/PKGBUILD +++ /dev/null @@ -1,66 +0,0 @@ -# Maintainer: Sl@ny -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 -} diff --git a/drone-runner-docker/agent.conf b/drone-runner-docker/agent.conf deleted file mode 100644 index cfb1d35..0000000 --- a/drone-runner-docker/agent.conf +++ /dev/null @@ -1,5 +0,0 @@ -# agent configuration - -#DRONE_RPC_PROTO=http -#DRONE_RPC_HOST= -#DRONE_RPC_SECRET="" diff --git a/drone-runner-docker/drone-agent.service b/drone-runner-docker/drone-agent.service deleted file mode 100644 index 201a971..0000000 --- a/drone-runner-docker/drone-agent.service +++ /dev/null @@ -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 diff --git a/drone/.SRCINFO b/drone/.SRCINFO deleted file mode 100644 index 561e992..0000000 --- a/drone/.SRCINFO +++ /dev/null @@ -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 diff --git a/drone/PKGBUILD b/drone/PKGBUILD deleted file mode 100644 index f0c86c3..0000000 --- a/drone/PKGBUILD +++ /dev/null @@ -1,65 +0,0 @@ -# Maintainer: Sl@ny -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 -} diff --git a/drone/drone.service b/drone/drone.service deleted file mode 100644 index d0c55f7..0000000 --- a/drone/drone.service +++ /dev/null @@ -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 diff --git a/drone/server.conf b/drone/server.conf deleted file mode 100644 index 4f06e82..0000000 --- a/drone/server.conf +++ /dev/null @@ -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