📦 fixing the deployment plan

This commit is contained in:
Jay Ehsaniara
2021-07-12 23:48:38 -07:00
parent b1073fd330
commit c731187fe8
5 changed files with 5 additions and 10 deletions

View File

@@ -25,4 +25,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sed -i 's|</project>|<distributionManagement><repository><id>github</id><name>GitHub</name><url>https://maven.pkg.github.com/ehsaniara/scs-kafka-intro</url></repository></distributionManagement></project>|g' scs-101/scs-101-commons/pom.xml ;
mvn -f scs-101/scs-101-commons deploy

View File

@@ -24,6 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cp scs-101/Dockerfile scs-101/scs-101-inventory-check/Dockerfile
cd scs-101/scs-101-inventory-check
echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin
docker build --build-arg GITHUB_TOKEN=$GITHUB_TOKEN -t ghcr.io/ehsaniara/scs-kafka-intro:scs-101-inventory-check-latest .

View File

@@ -1,8 +1,8 @@
#Jay Ehsaniara, Dockerfile should be in project root where pom.xml locates
FROM maven:3.6.3-jdk-11-slim AS maven_builder
ARG GITHUB_TOKEN
COPY pom.xml /application/
COPY src /application/src/
COPY scs-101-inventory-check/pom.xml /application/
COPY scs-101-inventory-check/src /application/src/
WORKDIR /application/
RUN \
if [ "x$GITHUB_TOKEN" = "x" ] ; then \

View File

@@ -14,6 +14,7 @@ lib project for core projects
## 2- scs-101-order
## 3- scs-101-order-branch

View File

@@ -57,12 +57,4 @@
</plugins>
</build>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub ehsaniara Apache Maven Packages</name>
<url>https://maven.pkg.github.com/ehsaniara/scs-kafka-intro</url>
</repository>
</distributionManagement>
</project>