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 @@