📦 fixing the deployment plan
This commit is contained in:
1
.github/workflows/scs101commons.yml
vendored
1
.github/workflows/scs101commons.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/scs101inventorycheck.yml
vendored
1
.github/workflows/scs101inventorycheck.yml
vendored
@@ -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 .
|
||||
|
||||
@@ -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 \
|
||||
@@ -14,6 +14,7 @@ lib project for core projects
|
||||
## 2- scs-101-order
|
||||
|
||||
|
||||
|
||||
## 3- scs-101-order-branch
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user