📦 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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
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
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
cp scs-101/Dockerfile scs-101/scs-101-inventory-check/Dockerfile
|
||||||
cd scs-101/scs-101-inventory-check
|
cd scs-101/scs-101-inventory-check
|
||||||
echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin
|
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 .
|
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
|
#Jay Ehsaniara, Dockerfile should be in project root where pom.xml locates
|
||||||
FROM maven:3.6.3-jdk-11-slim AS maven_builder
|
FROM maven:3.6.3-jdk-11-slim AS maven_builder
|
||||||
ARG GITHUB_TOKEN
|
ARG GITHUB_TOKEN
|
||||||
COPY pom.xml /application/
|
COPY scs-101-inventory-check/pom.xml /application/
|
||||||
COPY src /application/src/
|
COPY scs-101-inventory-check/src /application/src/
|
||||||
WORKDIR /application/
|
WORKDIR /application/
|
||||||
RUN \
|
RUN \
|
||||||
if [ "x$GITHUB_TOKEN" = "x" ] ; then \
|
if [ "x$GITHUB_TOKEN" = "x" ] ; then \
|
||||||
@@ -14,6 +14,7 @@ lib project for core projects
|
|||||||
## 2- scs-101-order
|
## 2- scs-101-order
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 3- scs-101-order-branch
|
## 3- scs-101-order-branch
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -57,12 +57,4 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</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>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user