12 Commits

Author SHA1 Message Date
1f454fa656 archive pls
All checks were successful
App Image CI / Build app image (push) Successful in -1m23s
Docker Image CI / Build build images (arch) (push) Successful in 1s
Docker Image CI / Build build images (artix) (push) Successful in -27s
NPM Audit Check / Check NPM audit (push) Successful in -2m10s
2025-10-28 19:13:07 -05:00
18c0e27da4 this is ridiculous now
All checks were successful
Docker Image CI / Build build images (artix) (push) Successful in -28s
NPM Audit Check / Check NPM audit (push) Successful in -2m11s
App Image CI / Build app image (push) Successful in -1m25s
Docker Image CI / Build build images (arch) (push) Successful in 3s
2025-10-28 17:49:29 -05:00
d34b41b899 debugging gitea's poor handling of actions
Some checks failed
App Image CI / Build app image (push) Has been cancelled
Docker Image CI / Build build images (arch) (push) Has been cancelled
NPM Audit Check / Check NPM audit (push) Successful in -2m11s
Docker Image CI / Build build images (artix) (push) Successful in -26s
2025-10-28 17:35:56 -05:00
9fe86c4114 support for a post-entrypoint script
All checks were successful
App Image CI / Build app image (push) Successful in -1m24s
Docker Image CI / Build build images (arch) (push) Successful in -1s
Docker Image CI / Build build images (artix) (push) Successful in -25s
NPM Audit Check / Check NPM audit (push) Successful in -2m10s
2025-10-28 17:17:34 -05:00
3b5ff4cf41 last debug info
All checks were successful
App Image CI / Build app image (push) Successful in -1m24s
Docker Image CI / Build build images (arch) (push) Successful in 1s
Docker Image CI / Build build images (artix) (push) Successful in -28s
NPM Audit Check / Check NPM audit (push) Successful in -2m10s
2025-10-28 13:07:59 -05:00
7b51f818d7 create archery file for debugging gitea actions
All checks were successful
App Image CI / Build app image (push) Successful in -1m22s
Docker Image CI / Build build images (arch) (push) Successful in 20s
Docker Image CI / Build build images (artix) (push) Successful in -29s
NPM Audit Check / Check NPM audit (push) Successful in -2m11s
2025-10-28 12:57:20 -05:00
5a16695338 make directory configurable
All checks were successful
App Image CI / Build app image (push) Successful in -1m26s
Docker Image CI / Build build images (arch) (push) Successful in -5s
Docker Image CI / Build build images (artix) (push) Successful in -34s
NPM Audit Check / Check NPM audit (push) Successful in -2m11s
2025-10-27 23:54:01 -05:00
a5c77c1440 bump validator.js version
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m11s
App Image CI / Build app image (push) Successful in -1m8s
2025-10-27 23:08:42 -05:00
a6d35036f3 skip clone if repo mounted
Some checks failed
App Image CI / Build app image (push) Successful in -1m25s
Docker Image CI / Build build images (arch) (push) Successful in -10s
Docker Image CI / Build build images (artix) (push) Successful in -37s
NPM Audit Check / Check NPM audit (push) Failing after -2m10s
2025-10-25 02:05:37 -05:00
abceb07c1a add profile scope
Some checks failed
App Image CI / Build app image (push) Successful in -1m9s
Docker Image CI / Build build images (arch) (push) Successful in -5s
Docker Image CI / Build build images (artix) (push) Successful in -28s
NPM Audit Check / Check NPM audit (push) Failing after -2m10s
2025-09-28 21:47:29 -05:00
2c71563efc hide cancel button from public view
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m13s
App Image CI / Build app image (push) Successful in -1m9s
2025-09-26 14:43:59 -05:00
f39ce0977f upsert user
All checks were successful
App Image CI / Build app image (push) Successful in -1m28s
NPM Audit Check / Check NPM audit (push) Successful in -2m13s
2025-09-26 14:38:17 -05:00
6 changed files with 36 additions and 16 deletions

View File

@@ -27,6 +27,13 @@ applyPatch() {
fi
}
postEntrypoint() {
if [ -n "$POST" ] && [ -x "./post-entrypoint.sh" ] ; then
echo "EXECUTING POSTENTRY"
./post-entrypoint.sh
fi
}
changeDir() {
if [ -n "$CD" ]
then
@@ -34,11 +41,15 @@ changeDir() {
fi
}
# Clone the git repo
git clone "$REPO" /home/user/pkg && \
cd /home/user/pkg && \
DIR="${WORKSPACE:-/home/user/pkg}"
if [ ! -d "$DIR" ]; then
git clone "$REPO" "$DIR" || exit $?
fi
cd "$DIR" && \
checkoutCommit && \
applyPatch && \
sudo pacman -Syu --noconfirm --noprogressbar &&\
makepkg -smf --noconfirm --noprogressbar --skippgpcheck --noarchive
makepkg -smf --noconfirm --noprogressbar --skippgpcheck && \
postEntrypoint
exit $?;

12
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "archery",
"version": "0.2.0",
"version": "0.2.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "archery",
"version": "0.2.0",
"version": "0.2.3",
"license": "MIT",
"dependencies": {
"body-parser": "^2.2.0",
@@ -934,6 +934,7 @@
"resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz",
"integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==",
"license": "MIT",
"peer": true,
"dependencies": {
"accepts": "^2.0.0",
"body-parser": "^2.2.0",
@@ -1607,6 +1608,7 @@
"resolved": "https://registry.npmjs.org/pg/-/pg-8.16.3.tgz",
"integrity": "sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==",
"license": "MIT",
"peer": true,
"dependencies": {
"pg-connection-string": "^2.9.1",
"pg-pool": "^3.10.1",
@@ -2282,9 +2284,9 @@
}
},
"node_modules/validator": {
"version": "13.12.0",
"resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz",
"integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==",
"version": "13.15.20",
"resolved": "https://registry.npmjs.org/validator/-/validator-13.15.20.tgz",
"integrity": "sha512-KxPOq3V2LmfQPP4eqf3Mq/zrT0Dqp2Vmx2Bn285LwVahLc+CsxOM0crBHczm8ijlcjZ0Q5Xd6LW3z3odTPnlrw==",
"license": "MIT",
"engines": {
"node": ">= 0.10"

View File

@@ -1,6 +1,6 @@
{
"name": "archery",
"version": "0.2.0",
"version": "0.2.3",
"description": "Build Arch packages through a web interface",
"keywords": [
"docker",

View File

@@ -216,6 +216,15 @@ class DB extends Store {
return user.id;
}
public async upsertUser(user: User): Promise<string> {
await this.user.upsert({
id: user.id,
username: user.username,
displayName: user.displayName || null
});
return user.id;
}
public async createBuild(repo: string, commit: string, patch: string, distro: string, dependencies: string, author: string, uuid: string): Promise<number> {
const buildRec = await this.build.create({
repo,

View File

@@ -324,17 +324,15 @@ class Web {
userInfoURL: openidconf.userinfo_endpoint,
clientID: options.oidc.clientId,
clientSecret: options.oidc.clientSecret,
callbackURL: `${baseUrl}cb`
callbackURL: `${baseUrl}cb`,
scope: 'profile'
}, async (_: string, profile: passport.Profile, cb: OpenIDConnectStrategy.VerifyCallback) => {
const userObj: User = {
id: profile.id,
username: profile.username,
displayName: profile.displayName
};
const user = await this.db.getUser(profile.id);
if (!user) {
await this.db.createUser(userObj);
}
await this.db.upsertUser(userObj);
return cb(null, userObj);
});
}

View File

@@ -31,7 +31,7 @@
<a href="/build?id=<%= build.sqid %>" class="button">Clone</a>
</div>
<% } %>
<% if (!ended) { %>
<% if (!ended && !public) { %>
<div id="cancelRow">
<a href="cancel" class="button">Cancel build</a>
</div>