Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
29 changes: 29 additions & 0 deletions .github/workflows/03-minhas-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 03 - Actions

on:
push:
branches: "feature/**"

jobs:
checkout_java_docker:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4

- name: Setup Java SDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

- name: Build
uses: docker/build-push-action@v6
with:
push: false

- name: Executar scripts
run: |
git branch
java --version
mvn clean package
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Simple API Java

Aplicação API
Aplicação API

## Pré-requisitos

Expand All @@ -18,7 +18,6 @@ docker compose up --build

./mvnw test


## Documentação online (OpenAPI)

http://localhost:8080/swagger-ui/index.html
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ services:
- "8080:8080"
environment:
- PROFILE=dev
- DATABASE_URL=jdbc:mysql://db:3306/api?createDatabaseIfNotExist=true
- DATABASE_URL=jdbc:mysql://bd-fiap-simple-java-api-dev.mysql.database.azure.com:3306/api?createDatabaseIfNotExist=true
- DATABASE_USER=root
- DATABASE_PWD=root_pass
Binary file added src/.DS_Store
Binary file not shown.