mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 08:29:52 +01:00
add frontend CI
This commit is contained in:
parent
d559d1a036
commit
44b667ff43
3 changed files with 18 additions and 2 deletions
16
.woodpecker.yml
Normal file
16
.woodpecker.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
steps:
|
||||||
|
frontend:
|
||||||
|
image: node
|
||||||
|
directory: frontend
|
||||||
|
environment: # SvelteKit expects these in the environment during build time.
|
||||||
|
- PRIVATE_SENTRY_DSN=non_existent_dsn
|
||||||
|
- PUBLIC_BASE_URL=http://pronouns.localhost
|
||||||
|
- PUBLIC_MEDIA_URL=http://pronouns.localhost/media
|
||||||
|
- PUBLIC_SHORT_BASE=http://prns.localhost
|
||||||
|
- PUBLIC_HCAPTCHA_SITEKEY=non_existent_sitekey
|
||||||
|
commands:
|
||||||
|
- corepack enable
|
||||||
|
- pnpm install
|
||||||
|
- pnpm check
|
||||||
|
- pnpm lint
|
||||||
|
- pnpm build
|
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@ all: generate backend frontend
|
||||||
|
|
||||||
.PHONY: backend
|
.PHONY: backend
|
||||||
backend:
|
backend:
|
||||||
go build -v -o pronouns -ldflags="-buildid= -X codeberg.org/pronounscc/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD` -X codeberg.org/pronounscc/pronouns.cc/backend/server.Tag=`git describe --tags --long`" .
|
go build -v -o pronouns -ldflags="-buildid= -X codeberg.org/pronounscc/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD` -X codeberg.org/pronounscc/pronouns.cc/backend/server.Tag=`git describe --tags --long --always`" .
|
||||||
|
|
||||||
.PHONY: generate
|
.PHONY: generate
|
||||||
generate:
|
generate:
|
||||||
|
|
|
@ -11,7 +11,7 @@ const config = {
|
||||||
kit: {
|
kit: {
|
||||||
adapter: adapter(),
|
adapter: adapter(),
|
||||||
version: {
|
version: {
|
||||||
name: child_process.execSync("git describe --tags --long").toString().trim(),
|
name: child_process.execSync("git describe --tags --long --always").toString().trim(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue