Skip to content

Commit 22f4951

Browse files
authored
Fixing Deploy scripts (#35)
* Fixing deploy scripts
1 parent ef9b9e4 commit 22f4951

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM maven:latest
2-
2+
RUN apt-get update \
3+
&& apt-get install -y make \
4+
&& rm -rf /var/lib/apt/lists/*
35

46
WORKDIR /aspose-barcode-cloud-java
57
COPY . .
68

7-
ENTRYPOINT [ "mvn", "deploy" ]
9+
ENTRYPOINT ["make", "publish-docker"]

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ format_tests:
1717

1818
.PHONY: test
1919
test:
20-
mvn -B package --file pom.xml
20+
mvn test
2121

22-
.PHONY: publish
23-
publish: test
22+
.PHONY: publish-docker
23+
publish-docker:
24+
sed -i -e 's_<url>https://repository.aspose.cloud/repo</url>_<url>http://repository.aspose.cloud/repo</url>_' pom.xml
2425
mvn deploy
2526

2627
.PHONY: update

0 commit comments

Comments
 (0)