Skip to content

Commit 71b715f

Browse files
committed
Add deploy
1 parent 350e009 commit 71b715f

5 files changed

Lines changed: 43 additions & 3 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
jobs:
7+
javabin:
8+
uses: javaBin/platform/.github/workflows/javabin.yml@main
9+
secrets: inherit

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ ENV NODE_ENV=production
2323
WORKDIR /app
2424

2525
COPY --from=build /app/.output ./
26+
COPY entrypoint.sh /entrypoint.sh
27+
RUN chmod +x /entrypoint.sh
2628

27-
CMD ["node", "/app/server/index.mjs"]
29+
ENTRYPOINT ["/entrypoint.sh"]
2830

app.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: cupcake
2+
team: cupcake
3+
4+
compute:
5+
cpu: 256
6+
memory: 512
7+
port: 3000
8+
health_check: /health
9+
10+
routing:
11+
host: cupcake.javazone.no
12+
priority: 100
13+
14+
auth:
15+
pool: internal
16+
callback_urls:
17+
- https://cupcake.javazone.no/
18+
- https://cupcake.javazone.no/auth/callback
19+
logout_urls:
20+
- https://cupcake.javazone.no/
21+
22+
environment:
23+
CUPCAKE_BACKEND: https://cupcake-backend.javazone.no

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
set -e
3+
export NUXT_PUBLIC_OIDC_AUTHORITY="${COGNITO_ISSUER_URL}"
4+
export NUXT_PUBLIC_OIDC_CLIENT_ID="${COGNITO_CLIENT_ID}"
5+
exec node /app/server/index.mjs

nuxt.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export default defineNuxtConfig({
1313

1414
runtimeConfig: {
1515
public: {
16-
oidcAuthority: "https://auth.home.chrissearle.org/realms/HA12",
17-
oidcClientId: "cupcake-client",
16+
oidcAuthority:
17+
"https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_Icikv3dtD",
18+
oidcClientId: "",
1819
},
1920
},
2021

0 commit comments

Comments
 (0)