From 424b9ed7136a9d05e65df536b6284812e5cfe18a Mon Sep 17 00:00:00 2001 From: Andreas Dinauer Date: Sun, 15 Mar 2026 09:03:40 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20oidc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 17 +++++++ Jenkinsfile | 18 +------ app/app.vue | 39 ++++++++++++++- app/auth/Account.ts | 24 ++++----- app/auth/Session.ts | 31 +++++++----- app/auth/Token.ts | 26 ++++++---- app/auth/useAccountStore.ts | 25 ++++++++++ app/components/artifact/Artifact.ts | 37 +++++++++----- app/components/artifact/ArtifactComponent.vue | 2 +- app/components/events/Event.ts | 18 ++++--- app/middleware/auth.global.ts | 14 ------ app/pages/app.vue | 42 ---------------- app/pages/app/index.vue | 15 ------ app/pages/{app => }/artifacts/[id]/index.vue | 3 +- app/pages/{app => }/artifacts/index.vue | 0 app/pages/index.vue | 9 ++-- app/pages/{app => }/settings/index.vue | 2 +- app/utils/Api.ts | 50 +++++++++++++++++++ app/utils/AuthApi.ts | 19 ------- app/utils/MavenApi.ts | 19 ------- nuxt.config.ts | 39 +++++++++------ {app/server => server}/download.ts | 0 server/middleware/auth.ts | 11 ++++ 23 files changed, 256 insertions(+), 204 deletions(-) create mode 100644 Dockerfile create mode 100644 app/auth/useAccountStore.ts delete mode 100644 app/middleware/auth.global.ts delete mode 100644 app/pages/app.vue delete mode 100644 app/pages/app/index.vue rename app/pages/{app => }/artifacts/[id]/index.vue (93%) rename app/pages/{app => }/artifacts/index.vue (100%) rename app/pages/{app => }/settings/index.vue (96%) create mode 100644 app/utils/Api.ts delete mode 100644 app/utils/AuthApi.ts delete mode 100644 app/utils/MavenApi.ts rename {app/server => server}/download.ts (100%) create mode 100644 server/middleware/auth.ts diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5d6b514 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:22-alpine + +WORKDIR /usr/app + +COPY . . + +ARG VERSION + +RUN npm install + +RUN npx nuxi cleanup + +RUN npx nuxi build + +EXPOSE 3000 + +CMD ["node", ".output/server/index.mjs"] \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 776494d..3db113c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,26 +2,10 @@ pipeline { agent any stages { - stage('Tag git commit') { - steps { - script { - sshagent(['jenkins']) { - sh """ - git config user.email "jenkins" - git config user.name "jenkins@dinauer-paf.de" - - git tag -a build-${env.BUILD_NUMBER} -m "Jenkins Build ${env.BUILD_NUMBER}" - - git push origin build-${env.BUILD_NUMBER} - """ - } - } - } - } stage('Set Image Name') { steps { script { - env.IMAGE = "harbor.dinauer.dev/kubooboo/frontend:${env.BUILD_NUMBER}"; + env.IMAGE = "harbor.dinauer.dev/registry/frontend:${env.BUILD_NUMBER}"; } } } diff --git a/app/app.vue b/app/app.vue index a284d97..63fc510 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,6 +1,15 @@