Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entregable 2 #143

Merged
merged 256 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
256 commits
Select commit Hold shift + click to select a range
7f51bdb
Error page, needs fixing
Pelayori Feb 11, 2024
9e56ec0
Error page, needs fix
Pelayori Feb 11, 2024
ebd69d6
create branch
Pelayori Feb 11, 2024
e1cd5da
Merge branch 'develop' of https://github.com/Arquisoft/wiq_es04b into…
Pelayori Feb 11, 2024
4ebfee8
typo in uml
Pelayori Feb 11, 2024
6da9609
Finish 7 and 8
Pelayori Feb 12, 2024
5567766
Merge branch 'develop' into proyectoJava
Pelayori Feb 18, 2024
f2d2a81
Update https!github.com!Arquisoft!wiq_es04b.git
Pelayori Feb 18, 2024
573b57a
Italics on tables fixed
uo287545 Feb 18, 2024
e2ad360
Fix error controller, and improve error.html template
Pelayori Feb 19, 2024
173ae5d
Removed unused imports
Pelayori Feb 19, 2024
5be325b
Add JPA, HSQLDB (pending decision, local testing)
Pelayori Feb 19, 2024
73bf6cf
Add User entity
Pelayori Feb 19, 2024
e429715
Update gitignore
Pelayori Feb 20, 2024
17b0ccd
Update gitignore
Pelayori Feb 20, 2024
fc64a7e
Merge branch 'develop' into proyectoJava
Pelayori Feb 20, 2024
fbacacf
Merge pull request #56 from Arquisoft/proyectoJava
Pelayori Feb 20, 2024
3dd35d2
Changes to points 11 and 12 of the documentation, following the advic…
uo288061 Feb 20, 2024
efdf020
Merge branch 'develop' into docs-11-12
uo288061 Feb 20, 2024
3c64b87
Changed documentation title and 1. header.
uo287545 Feb 21, 2024
b416269
Merge pull request #65 from Arquisoft/docs-11-12
Pelayori Feb 21, 2024
451d5ee
Merge pull request #67 from Arquisoft/Documentation-Title-Fix
Pelayori Feb 21, 2024
4c09303
Removed about ARC42.
uo287545 Feb 21, 2024
563c45c
Merge pull request #68 from Arquisoft/Documentation-Title-Fix
Pelayori Feb 21, 2024
39411d0
Update database
Pelayori Feb 21, 2024
a9bc717
Start adding user signup. Very WIP.
Pelayori Feb 22, 2024
dc21502
Fix typo
Pelayori Feb 22, 2024
4c90c0a
Finished big parts of the login
Pelayori Feb 22, 2024
5c6f4a0
Update gitgnore
Pelayori Feb 22, 2024
e27614e
Remove database (test to exclude not needed files)
Pelayori Feb 22, 2024
087686a
Update gitignore
Pelayori Feb 22, 2024
222a018
Add minimal db files
Pelayori Feb 22, 2024
9b1611b
Add handling when user is already authenticated
Pelayori Feb 22, 2024
5e40b43
Add /home redirect button
Pelayori Feb 22, 2024
2da741d
Change head
Pelayori Feb 22, 2024
5236b9f
Change error url
Pelayori Feb 23, 2024
039c49c
Merge pull request #70 from Arquisoft/proyectoJava
uo287545 Feb 23, 2024
21ad2fd
First version of the question domain.
uo287545 Feb 24, 2024
c7ada23
Add missing libs
Pelayori Feb 24, 2024
7c2cdb9
Fix views for deployment
Pelayori Feb 25, 2024
79cb9cf
Merge pull request #72 from Arquisoft/proyectoJava
Pelayori Feb 25, 2024
dd0e052
Add MySQL dependencies, add new env-dependant application properties
Pelayori Feb 25, 2024
7908552
Docker files, mysql and wiq app
Pelayori Feb 25, 2024
1a342c0
Test github action to release
Pelayori Feb 25, 2024
751e78a
Lowercase image name and app name change
Pelayori Feb 25, 2024
2629928
Hardcode repo namr
Pelayori Feb 25, 2024
989fa6b
Remove directory
Pelayori Feb 25, 2024
87de4ef
Change to grab the current's branch name
Pelayori Feb 25, 2024
599c967
More testing for deployment
Pelayori Feb 25, 2024
17c73d7
Remove .env file
Pelayori Feb 25, 2024
1fbb53e
Add download from repo
Pelayori Feb 25, 2024
cbd267e
Test fix for mysql user not being created on first run
Pelayori Feb 25, 2024
c9b7c53
Add restart always to ensure container restarts if it can't start (my…
Pelayori Feb 25, 2024
e6743c5
Changes for SSL configuration
Pelayori Feb 25, 2024
4639658
More testing, different app path
Pelayori Feb 25, 2024
8d718f7
Change keystore path
Pelayori Feb 25, 2024
834f944
Trying to fix SSL stuff
Pelayori Feb 25, 2024
f948ac4
Try add no cache
Pelayori Feb 25, 2024
114eaf6
Remove SSL temporary
Pelayori Feb 25, 2024
4832595
Readd SSL, add pull before up
Pelayori Feb 25, 2024
b9c1f7d
Readd SSL, add pull before up
Pelayori Feb 25, 2024
39ab126
More SSL testing
Pelayori Feb 25, 2024
5205f78
Merge pull request #73 from Arquisoft/java-deployment
uo287545 Feb 26, 2024
f8a0933
Enable CSRF, add more consistency for adding player roles, remove dat…
Pelayori Feb 26, 2024
e2ffa4f
Fix CSRF
Pelayori Feb 26, 2024
1be32a4
Merge branch 'develop' into docs-7-8
Pelayori Feb 26, 2024
2b9f886
Cambios en los puntos 9 y 10 de la documentación.
uo287568 Feb 26, 2024
be6c7ca
Complete domain model diagram (WIP)
Pelayori Feb 26, 2024
b71c3bc
Remove unused interface
Pelayori Feb 26, 2024
7b3615e
Merge pull request #77 from Arquisoft/CambiosDoc9-10
Pelayori Feb 26, 2024
db4e31d
Split diagram for better visibility
Pelayori Feb 26, 2024
85bffc8
Merge pull request #78 from Arquisoft/docs-7-8
uo287545 Feb 26, 2024
7c15928
Merge pull request #76 from Arquisoft/proyectoJava
uo287545 Feb 26, 2024
1cd1671
Changes to points 11 and 12 of the documentation, following the advic…
uo288061 Feb 27, 2024
6e6414e
Merge remote-tracking branch 'origin/docs-11-12' into docs-11-12
uo288061 Feb 27, 2024
66f805b
Changes to points 11 and 12 of the documentation, following the advic…
uo288061 Feb 27, 2024
d353880
Changes to points 11 and 12 of the documentation, following the advic…
uo288061 Feb 27, 2024
0b99223
Merge pull request #80 from Arquisoft/docs-11-12
Pelayori Feb 27, 2024
6b89221
Add better error handling, email validation, and auto login post signup
Pelayori Feb 27, 2024
7b14188
Basic internationalization done
uo288061 Feb 27, 2024
5cbe943
Merge pull request #92 from Arquisoft/proyectoJava
Pelayori Feb 27, 2024
a458dce
internationalization of forms
uo288061 Feb 27, 2024
5e57f2a
Question domain entities, repositories and services added.
uo287545 Feb 28, 2024
4a40687
Removed Wikidata library because of its inefficiency compared with SP…
uo287545 Feb 29, 2024
f355ca0
Improvements in the question generation system
uo287545 Feb 29, 2024
dc5466c
Question generation system done for Geography question
uo287545 Feb 29, 2024
9b0d319
Trying to make Categories singletons
uo287545 Feb 29, 2024
49a41d4
Merge remote-tracking branch 'origin/develop' into question-generation
uo287545 Feb 29, 2024
19e1129
First version of the question generator ready
uo287545 Feb 29, 2024
94488b6
Merge pull request #96 from Arquisoft/question-generation
Pelayori Feb 29, 2024
882f4ea
Reduced context diagram
uo287545 Feb 29, 2024
4f3c733
Add GameSession entity
RicardoDiNu Mar 1, 2024
d66d783
Merge pull request #97 from Arquisoft/fix-documentation-section-3
Pelayori Mar 1, 2024
0e6d5d8
Merge branch 'develop' into internationalization
Pelayori Mar 2, 2024
7a342da
Merge pull request #99 from Arquisoft/internationalization
Pelayori Mar 2, 2024
48a43e6
Add new member to player to match GameSession new entity
Pelayori Mar 2, 2024
bf49983
Merge pull request #98 from Arquisoft/entities-develop
Pelayori Mar 2, 2024
0455541
Add nav.css
RicardoDiNu Mar 2, 2024
cbc78c6
Add fotter.css
RicardoDiNu Mar 2, 2024
ec70273
Delete nav border
RicardoDiNu Mar 2, 2024
8610fc5
Add style.css
RicardoDiNu Mar 2, 2024
12f87ab
Merge pull request #100 from Arquisoft/change-app-style
Pelayori Mar 2, 2024
c2a6d9f
First version of the users REST API. Frameworking for the rest of the…
Pelayori Mar 4, 2024
3417ea1
index.html updated
RicardoDiNu Mar 4, 2024
84e6dfa
Merge pull request #109 from Arquisoft/index-view-develop
Pelayori Mar 4, 2024
8407b85
Finish REST API. Pending Api docs
Pelayori Mar 4, 2024
abd7f41
Merge remote-tracking branch 'origin/develop' into rest-api
Pelayori Mar 4, 2024
5fdcd1c
Added favicon
uo287545 Mar 4, 2024
2940287
Añadidos api docs y traducción
Pelayori Mar 4, 2024
798f516
Modified a couple stuff of visuals
Pelayori Mar 4, 2024
1bca9e5
Test fix for sql generation
Pelayori Mar 4, 2024
885e4b3
Test fix for sql generation
Pelayori Mar 4, 2024
8a23638
Test fix for sql generation
Pelayori Mar 4, 2024
9b1782b
Test fix for sql generation
Pelayori Mar 4, 2024
bab3d5e
Test fix for sql generation
Pelayori Mar 4, 2024
972bbb5
Added image for the home button
uo287545 Mar 4, 2024
e47584a
Test fix for sql generation
Pelayori Mar 4, 2024
70bab87
Test fix for sql generation
Pelayori Mar 4, 2024
5102408
Test fix for sql generation
Pelayori Mar 4, 2024
778a18d
Test fix for sql generation
Pelayori Mar 4, 2024
f8e2673
Merge pull request #111 from Arquisoft/logo-design
Pelayori Mar 4, 2024
18e2795
Merge pull request #110 from Arquisoft/rest-api
uo287545 Mar 5, 2024
5e28ec5
Fix mobile navbar
Pelayori Mar 5, 2024
745cfb7
Merge pull request #113 from Arquisoft/mobile-compatibility
uo287545 Mar 5, 2024
f458d0e
Question actualizado
uo287568 Mar 5, 2024
23ab552
Category actualizado
uo287568 Mar 5, 2024
7e49d82
Player actualizado
uo287568 Mar 5, 2024
1e73bf5
GameSession actualizado
uo287568 Mar 5, 2024
e0c297b
Role actualizado
uo287568 Mar 5, 2024
36eaba5
PlayerService actualizado
uo287568 Mar 5, 2024
4161090
RoleService actualizado
uo287568 Mar 5, 2024
0a4ede9
PlayerServiceImpl actualizado
uo287568 Mar 5, 2024
7bba10c
RoleServiceImpl actualizado
uo287568 Mar 5, 2024
1786de0
PlayerRepository actualizado
uo287568 Mar 5, 2024
d268bcf
RoleRepository actualizado
uo287568 Mar 5, 2024
1eaa4fc
Answer creado
uo287568 Mar 5, 2024
65f434d
ApiKey creado
uo287568 Mar 5, 2024
3b09969
Associations creado y clases internas
uo287568 Mar 5, 2024
3b14197
RestApiAccessLog creado
uo287568 Mar 5, 2024
b51e937
JsonEntity creado
uo287568 Mar 5, 2024
2fe344c
AnswerService creado
uo287568 Mar 5, 2024
95d33a7
ApiKeyService creado
uo287568 Mar 5, 2024
888f71d
CategoryService creado
uo287568 Mar 5, 2024
3cfb3f7
Initial funcionality
RicardoDiNu Mar 5, 2024
2c785db
QuestionService creado
uo287568 Mar 5, 2024
edf5424
globalRanking done
uo288061 Mar 5, 2024
94b0443
Cambios iniciales realizados en clase
uo287545 Mar 5, 2024
2956336
Reverted temporary test changes and started implementing game view.
uo287545 Mar 6, 2024
4469426
Add stopwatch fragment for the game
Pelayori Mar 6, 2024
b43723e
Added security configuration so only authenticated users can play and…
uo287545 Mar 6, 2024
38a51de
Merge pull request #119 from Arquisoft/chrono-game
uo287545 Mar 6, 2024
4506338
Added some fragments to show after the user has answered a question. …
uo287545 Mar 6, 2024
4687f6a
Implemented the basics for the question answering system. Waiting for…
uo287545 Mar 6, 2024
a10a666
Finish most style for the game
Pelayori Mar 6, 2024
0edf382
views update
RicardoDiNu Mar 6, 2024
2a415a3
RestApiService creado
uo287568 Mar 6, 2024
0db9ced
AnswerServiceImpl creado
uo287568 Mar 6, 2024
7f7d8fd
ApiKeyServiceImpl creado
uo287568 Mar 6, 2024
688bc4b
CategoryServiceImpl creado
uo287568 Mar 6, 2024
7f40308
QuestionServiceImpl creado
uo287568 Mar 6, 2024
2fa2fa9
RestApiServiceImpl creado
uo287568 Mar 6, 2024
af8d190
AnswerRepository creado
uo287568 Mar 6, 2024
b49e14f
ApiKeyRepository creado
uo287568 Mar 6, 2024
7a1ed51
CategoryRepository creado
uo287568 Mar 6, 2024
f8f38b7
GameSessionRepository creado
uo287568 Mar 6, 2024
7526299
QuestionRepository creado
uo287568 Mar 6, 2024
9de0f0b
RestApiLogRepository creado
uo287568 Mar 6, 2024
072b7da
AnswerDto creado
uo287568 Mar 6, 2024
2251187
CategoryDto creado
uo287568 Mar 6, 2024
e6dae3c
QuestionDto creado
uo287568 Mar 6, 2024
533beb9
CustomUserDetailsService creado
uo287568 Mar 6, 2024
24a28a4
InsertSampleDataService creado
uo287568 Mar 6, 2024
bcf426a
Algunas asociaciones de las tablas
uo287568 Mar 6, 2024
24bb705
ranking finished
RicardoDiNu Mar 6, 2024
22f2f57
Internationalize question generation
Pelayori Mar 7, 2024
3e803a5
Fix create in app properties
Pelayori Mar 7, 2024
9b0dfbd
Merge branch 'develop' into ranking_global-develop
Pelayori Mar 7, 2024
42b773a
Merge pull request #120 from Arquisoft/ranking_global-develop
Pelayori Mar 7, 2024
1e1a806
Merge branch 'develop' into game-view
Pelayori Mar 7, 2024
9e37b70
delete duplicate score attribute in GameSession class
RicardoDiNu Mar 7, 2024
350f98b
Implement game logic, persistant and with some exploits fixed
Pelayori Mar 7, 2024
a8fbe8c
Change to 20 questions per game
Pelayori Mar 7, 2024
5ca718d
front-end updated
RicardoDiNu Mar 8, 2024
fe4642f
Merge pull request #122 from Arquisoft/change-app-style
uo287545 Mar 8, 2024
85b850c
Merge remote-tracking branch 'origin/develop' into game-view
Pelayori Mar 8, 2024
0f8f685
AbstractGeographyGenerator creado
uo287568 Mar 8, 2024
4af279c
BorderQuestionGenerator creado
uo287568 Mar 8, 2024
102327b
CapitalQuestionGenerator creado
uo287568 Mar 8, 2024
13c1b7a
ContinentQuestionGeneration creado
uo287568 Mar 8, 2024
9562fd5
AbstractQuestionGenerator creado
uo287568 Mar 8, 2024
89e6e5d
QuestionGenerator creado
uo287568 Mar 8, 2024
089d7bc
CustomAuthenticationFailureHandler creado
uo287568 Mar 8, 2024
50fb7fe
QuestionGeneratorTestController creado
uo287568 Mar 8, 2024
5451ef7
CustomConfiguration creado
uo287568 Mar 8, 2024
6cbeba1
SecurityConfig creado
uo287568 Mar 8, 2024
a8a8860
Más asociaciones
uo287568 Mar 8, 2024
4fc40ce
Fix some styling issues
Pelayori Mar 8, 2024
24df811
CustomErrorController creado
uo287568 Mar 8, 2024
bef1681
HomeController creado
uo287568 Mar 8, 2024
5adf426
PlayersController creado
uo287568 Mar 8, 2024
ec80a2b
RestApiController creado
uo287568 Mar 8, 2024
5ecb640
WiqEs04bApplication creado
uo287568 Mar 8, 2024
bb20c60
Faltan algunas asociaciones y dividirlo en varios UML's
uo287568 Mar 8, 2024
f28a3a1
Todas las asociaciones completadas
uo287568 Mar 8, 2024
cc75fab
División de UML
uo287568 Mar 8, 2024
765a410
Eliminación de Associations
uo287568 Mar 8, 2024
4622129
Merge pull request #123 from Arquisoft/Correcciones_Documentacion
Pelayori Mar 8, 2024
8045b00
Changes for style, fixes for mobile version
Pelayori Mar 8, 2024
b0756ff
Add user nav menu, user home and api key requests. Enhanced player ra…
Pelayori Mar 9, 2024
3452fcd
Merge pull request #124 from Arquisoft/game-view
Pelayori Mar 9, 2024
1f4955f
Fix some navbar issues
Pelayori Mar 9, 2024
da0e25d
Fix prod error on game template
Pelayori Mar 9, 2024
760fa27
Fix prod error on game template
Pelayori Mar 9, 2024
b4669de
Remove sample data
Pelayori Mar 9, 2024
337c8fa
Merge pull request #125 from Arquisoft/java-deployment
uo287545 Mar 9, 2024
807b0c6
Fix nav game button, fix some missing messages
Pelayori Mar 9, 2024
17875a2
Added some checks to skip questions with empty answers.
uo287545 Mar 9, 2024
d5f48c9
Merge branch 'ranking-develop' into fix-empty-answers
Pelayori Mar 9, 2024
1ea5f7e
Merge pull request #126 from Arquisoft/game-view
uo287545 Mar 9, 2024
6dbcdd9
Merge branch 'develop' into fix-empty-answers
Pelayori Mar 9, 2024
f51b68c
Merge pull request #128 from Arquisoft/fix-empty-answers
Pelayori Mar 9, 2024
0504bae
Added register link.
uo287545 Mar 9, 2024
b08226e
Merge pull request #130 from Arquisoft/add-register-link
Pelayori Mar 9, 2024
8404a01
02_architecture_constraints updated
DanielAB95 Mar 10, 2024
4811149
04_solution_strategy patern placeholder out
DanielAB95 Mar 10, 2024
a013615
05_building_block_view added database
DanielAB95 Mar 10, 2024
aabc86a
Hotfix: fix compile errors
Pelayori Mar 10, 2024
a483d3a
04_solution_strategy database placeholder removed
DanielAB95 Mar 10, 2024
3cc4cad
02_architecture_constraints format changes
DanielAB95 Mar 10, 2024
80caa46
Eliminación de CustomErrorController
uo287568 Mar 11, 2024
2b991e9
Eliminación de HomeController
uo287568 Mar 11, 2024
79fd928
Eliminación de PlayersController
uo287568 Mar 11, 2024
047aea3
Eliminación de RestApiController
uo287568 Mar 11, 2024
fb45076
Eliminación de los repositorios
uo287568 Mar 11, 2024
d45ed0c
Update some parts of the documentation. Finished section 5
Pelayori Mar 11, 2024
44473f5
Merge pull request #132 from Arquisoft/DOC_Corrections
Pelayori Mar 11, 2024
a0d9044
Merge pull request #133 from Arquisoft/Correcciones_Documentacion
Pelayori Mar 11, 2024
b25ca69
Add wiq logo image, and some small details on index
Pelayori Mar 11, 2024
8ca607f
Fix numbering
Pelayori Mar 11, 2024
eb590e9
Remove duplicate data
Pelayori Mar 11, 2024
3c5a7ec
Merge remote-tracking branch 'origin/develop' into DOC_Corrections
Pelayori Mar 11, 2024
d4bda7e
Merge branch 'develop' into DOC_Corrections
Pelayori Mar 11, 2024
5078c22
Corrección del glosario
uo287568 Mar 11, 2024
8f68af3
Change bussiness context diagram to be less technical
Pelayori Mar 11, 2024
c03435b
Added some fixes for the first section.
uo287545 Mar 11, 2024
8b5dc8a
Merge pull request #139 from Arquisoft/section1-fix
Pelayori Mar 11, 2024
0b69112
Merge pull request #136 from Arquisoft/Correcciones_Documentacion
Pelayori Mar 11, 2024
e17b52c
Merge pull request #135 from Arquisoft/DOC_Corrections
uo287545 Mar 11, 2024
944551c
Fixed the empty answer bug.
uo287545 Mar 11, 2024
f7e4a98
Merge pull request #140 from Arquisoft/fix-question-generation
Pelayori Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .env

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/build.yml

This file was deleted.

147 changes: 34 additions & 113 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,128 +1,49 @@
name: Deploy on release

on:
push:
branches:
- java-deployment
release:
types: [published]

jobs:
unit-tests:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm --prefix users/authservice ci
- run: npm --prefix users/userservice ci
- run: npm --prefix gatewayservice ci
- run: npm --prefix webapp ci
- run: npm --prefix users/authservice test -- --coverage
- run: npm --prefix users/userservice test -- --coverage
- run: npm --prefix gatewayservice test -- --coverage
- run: npm --prefix webapp test -- --coverage
- name: Analyze with SonarCloud
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
e2e-tests:
needs: [unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm --prefix users/authservice install
- run: npm --prefix users/userservice install
- run: npm --prefix gatewayservice install
- run: npm --prefix webapp install
- run: npm --prefix webapp run build
- run: npm --prefix webapp run test:e2e
docker-push-webapp:
name: Push webapp Docker Image to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
API_URI: http://${{ secrets.DEPLOY_HOST }}:8000
with:
name: arquisoft/wiq_es04b/webapp
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
workdir: webapp
buildargs: API_URI
docker-push-authservice:
name: Push auth service Docker Image to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wiq_es04b/authservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: users/authservice
docker-push-userservice:
name: Push user service Docker Image to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wiq_es04b/userservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: users/userservice
docker-push-gatewayservice:
name: Push gateway service Docker Image to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [e2e-tests]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wiq_es04b/gatewayservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: gatewayservice

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/arquisoft/wiq_es04b:latest
no-cache: true

deploy:
name: Deploy over SSH
runs-on: ubuntu-latest
needs: [docker-push-userservice,docker-push-authservice,docker-push-gatewayservice,docker-push-webapp]
needs: build-and-push
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
wget https://raw.githubusercontent.com/arquisoft/wiq_es04b/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_es04b/master/.env -O .env
docker compose down
docker compose --profile prod up -d
- name: Deploy over SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/docker-compose.yml -O docker-compose.yml
docker-compose down
docker compose pull
docker-compose up -d
96 changes: 95 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,97 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### HSQLDB ###
database/hsqldb/build/
database/hsqldb/data/
database/hsqldb/doc/
database/hsqldb/src/
database/hsqldb/testrun/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
*.lck
node_modules
coverage
docs/build
docs/build
.idea/compiler.xml
.idea/encodings.xml
.idea/jarRepositories.xml
.idea/misc.xml
.idea/vcs.xml
database/hsqldb/build/antivy-setup.xml
database/hsqldb/build/build-dist.gradle
database/hsqldb/build/build-dist.xml
database/hsqldb/build/build-docbook.xml
database/hsqldb/build/build.gradle
database/hsqldb/build/build.hsqldb.cmd
database/hsqldb/build/build.hsqldbtest.cmd
database/hsqldb/build/build.javadoc.cmd
database/hsqldb/build/build.sqltool.cmd
database/hsqldb/build/build.test.suite.cmd
database/hsqldb/build/build.xml
database/hsqldb/build/cfdistro.bash
database/hsqldb/build/clean.test.suite.cmd
database/hsqldb/build/dbuInstallSheetsWrapper.groovy
database/hsqldb/build/dependencies.gradle
database/hsqldb/build/DocBookUtil.groovy
database/hsqldb/build/gradle/wrapper/gradle-wrapper.jar
database/hsqldb/build/gradle/wrapper/gradle-wrapper.properties
database/hsqldb/build/gradlew
database/hsqldb/build/gradlew.bat
database/hsqldb/build/gui-initial.setting
database/hsqldb/build/gui-welcome.txt
database/hsqldb/build/hsqldb.bnd
database/hsqldb/build/ivy.xml
database/hsqldb/build/ivysettings-sample.xml
database/hsqldb/build/jdkcodeswitch.list
database/hsqldb/build/mvn-pub.gradle
database/hsqldb/build/rng-catalog-template.xml
database/hsqldb/build/run.test.suite.cmd
database/hsqldb/build/setenv.cmd
database/hsqldb/build/settings.gradle
database/hsqldb/build/test.dbmd.convert.properties
database/hsqldb/build/test.properties
database/hsqldb/build/test.xml
target/classes/application.properties
target/classes/com/uniovi/controllers/CustomErrorController.class
target/classes/com/uniovi/controllers/HomeController.class
target/classes/com/uniovi/entities/AppUser.class
target/classes/com/uniovi/WiqEs04bApplication.class
target/classes/static/css/custom.css
target/classes/templates/error.html
target/classes/templates/fragments/footer.html
target/classes/templates/fragments/head.html
target/classes/templates/fragments/nav.html
target/classes/templates/index.html
/database/hsqldb/bin/test.log
/database/hsqldb/bin/test.properties
/database/hsqldb/bin/test.script
Binary file added .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Build stage with Maven and JDK 17
FROM maven:3.8.4-openjdk-17-slim as build
WORKDIR /app
COPY pom.xml .
COPY src src/
# Use Maven directly instead of the Maven Wrapper
RUN mvn clean package -DskipTests

# Run stage with JDK 17
FROM openjdk:17-slim
COPY --from=build /app/target/*.jar app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=prod","-jar","/app.jar"]
EXPOSE 443
Loading
Loading