-
Notifications
You must be signed in to change notification settings - Fork 0
update workflow to inclued the creation of the .jar file #13
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,12 +7,21 @@ on: | |
| branches: [ "master" ] | ||
|
|
||
| jobs: | ||
|
|
||
| build: | ||
|
|
||
| build-and-dockerize: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Build the Docker image | ||
| run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '21' | ||
| distribution: 'temurin' | ||
|
|
||
| - name: Build with Maven | ||
| run: mvn clean package | ||
|
|
||
| - name: Build Docker image | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Contexto de build do Docker ausente Especifique o contexto de build no seu comando Original comment in Englishissue (bug_risk): Missing Docker build context Please specify the build context in your |
||
| run: docker build -t aifoodapp:latest | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (performance): Adicionar cache para dependências do Maven
Considere usar
actions/cachepara armazenar em cache o diretório~/.m2/repositorypara builds mais rápidos, reutilizando as dependências do Maven.Original comment in English
suggestion (performance): Add caching for Maven dependencies
Consider using
actions/cacheto cache the~/.m2/repositorydirectory for faster builds by reusing Maven dependencies.