Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bda9bc5aa5 | |||
| adb7400e87 |
@@ -1,4 +1,4 @@
|
||||
FROM node:23-alpine AS base
|
||||
FROM node:24-alpine AS base
|
||||
FROM base AS build-env
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
@@ -18,6 +18,7 @@ NoProgressBar
|
||||
VerbosePkgLists
|
||||
ParallelDownloads = 5
|
||||
DownloadUser = alpm
|
||||
DisableSandbox
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ NoProgressBar
|
||||
VerbosePkgLists
|
||||
ParallelDownloads = 5
|
||||
DownloadUser = alpm
|
||||
DisableSandbox
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "archery",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "archery",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"body-parser": "^2.2.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "archery",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"description": "Build Arch packages through a web interface",
|
||||
"keywords": [
|
||||
"docker",
|
||||
|
||||
@@ -53,6 +53,13 @@ function splitLines(lines: LogChunk[]) {
|
||||
return lines.map(logChunk => logChunk.chunk.split('\n')).flat().map(line => line.substring(line.lastIndexOf('\r') + 1));
|
||||
}
|
||||
|
||||
function resolvePackageRepo(repo: string) {
|
||||
if (/^[a-zA-Z]+:\/\//.test(repo) || repo.toLowerCase().endsWith('.git')) {
|
||||
return repo;
|
||||
}
|
||||
return `https://gitlab.archlinux.org/archlinux/packaging/packages/${repo}.git`;
|
||||
}
|
||||
|
||||
class Web {
|
||||
private _webserver: http.Server | null = null;
|
||||
private db: DB;
|
||||
@@ -268,7 +275,7 @@ class Web {
|
||||
|
||||
app.post('/build{/}', async (req, res) => {
|
||||
const buildId = await this.db.createBuild(
|
||||
req.body.repo,
|
||||
resolvePackageRepo(req.body.repo),
|
||||
req.body.commit || null,
|
||||
req.body.patch || null,
|
||||
req.body.distro || 'arch',
|
||||
|
||||
Reference in New Issue
Block a user