🔧 update commons maven ci

This commit is contained in:
Jay Ehsaniara
2021-07-12 18:01:35 -07:00
parent 92a677c24d
commit 79c8839750
2 changed files with 3 additions and 1 deletions

View File

@@ -25,5 +25,5 @@ jobs:
run: |
cd scs-101/scs-101-inventory-check
echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin
docker build -t scs-kafka-intro:scs-101-inventory-check-latest .
docker build --build-arg GITHUB_TOKEN=$GITHUB_TOKEN -t scs-kafka-intro:scs-101-inventory-check-latest .
# docker push ghcr.io/ehsaniara/scs-kafka-intro:scs-101-inventory-check-latest

View File

@@ -1,7 +1,9 @@
FROM maven:3.6.3-jdk-11-slim AS maven_builder
ARG GITHUB_TOKEN
COPY pom.xml /application/
COPY src /application/src/
WORKDIR /application/
RUN echo "<settings><servers><server><id>github</id><username>OWNER</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > settings.xml
RUN mvn clean package -e
# extract spring boot the layers