-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subdir for Git context is not yet supported (moby/buildkit#1684) but…
… you can use the path context in the meantime. More info on Docker docs website.
- Loading branch information
Jean
committed
Apr 19, 2021
1 parent
c4a4571
commit 19fd4cd
Showing
3 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Set up JDK 11 | ||
# uses: actions/setup-java@v2 | ||
# with: | ||
# java-version: '11' | ||
# distribution: 'adopt' | ||
# - name: Build with Maven | ||
# run: mvn -B package --file cabal-neo-admin/pom.xml | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
- name: Build with Maven | ||
run: mvn -B package --file cabal-neo-admin/pom.xml | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Docker Login | ||
|
@@ -32,8 +32,8 @@ jobs: | |
- name: Criando a Imagem Docker | ||
uses: docker/[email protected] | ||
with: | ||
context: cabal-neo-admin | ||
file: cabal-neo-admin/Dockerfile | ||
context: . | ||
file: . | ||
tags: | | ||
jeanlucafp/cabalneobackend:latest | ||
jeanlucafp/cabalneobackend:${{ github.run_number }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# FROM maven:3.5-jdk-8 AS build | ||
|
||
# COPY src . | ||
|
||
# COPY pom.xml . | ||
|
||
# RUN mvn -f pom.xml clean package -Dmaven.test.skip=true | ||
|
||
FROM openjdk:11-jdk-buster | ||
|
||
ARG JAR_FILE=cabal-neo-admin/target/*.jar | ||
|
||
COPY ${JAR_FILE} app.jar | ||
|
||
ENV PORT 8080 | ||
|
||
EXPOSE $PORT | ||
|
||
ENTRYPOINT ["java","-jar","/app.jar"] |
This file was deleted.
Oops, something went wrong.