Commit 8fb16b6a by Jason Song Committed by GitHub

Merge pull request #441 from nobodyiam/github-deployment

GitHub deployment
parents feaf925d 7fad4829
......@@ -101,4 +101,19 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>github</id>
<properties>
<package.environment>github</package.environment>
</properties>
<dependencies>
<!-- disable cat for outside use -->
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-buildtools</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
......@@ -2,7 +2,7 @@ spring:
application:
name: apollo-adminservice
profiles:
active: ctrip
active: ${apollo_profile}
ctrip:
appid: 100003172
......
spring:
profiles:
active: ctrip
active: ${apollo_profile}
logging:
level:
......
......@@ -102,4 +102,19 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>github</id>
<properties>
<package.environment>github</package.environment>
</properties>
<dependencies>
<!-- disable cat for outside use -->
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-buildtools</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
......@@ -2,7 +2,7 @@ spring:
application:
name: apollo-configservice
profiles:
active: ctrip
active: ${apollo_profile}
ctrip:
appid: 100003171
......
......@@ -71,5 +71,18 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>github</id>
<properties>
<package.environment>github</package.environment>
</properties>
<dependencies>
<!-- disable cat for outside use -->
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-buildtools</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
......@@ -2,7 +2,7 @@ spring:
application:
name: apollo-portal
profiles:
active: ctrip
active: ${apollo_profile}
ctrip:
appid: 100003173
......
#!/bin/sh
# apollo config db info
apollo_config_db_url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8
apollo_config_db_username=root
apollo_config_db_password=
# apollo portal db info
apollo_portal_db_url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8
apollo_portal_db_username=root
apollo_portal_db_password=
# meta server url
dev_meta=http://localhost:8080
fat_meta=http://localhost:8080
uat_meta=http://localhost:8080
pro_meta=http://localhost:8080
META_SERVERS_OPTS="-Ddev_meta=$dev_meta -Dfat_meta=$fat_meta -Duat_meta=$uat_meta -Dpro_meta=$pro_meta"
# =============== Please do not modify the following content =============== #
cd ..
# package config-service and admin-service
echo "==== starting to build config-service and admin-service ===="
mvn clean package -DskipTests -pl apollo-configservice,apollo-adminservice -am -Pgithub -Dapollo_profile=dev -Dspring_datasource_url=$apollo_config_db_url -Dspring_datasource_username=$apollo_config_db_username -Dspring_datasource_password=$apollo_config_db_password
echo "==== building config-service and admin-service finished ===="
echo "==== starting to build portal ===="
mvn clean package -DskipTests -pl apollo-portal -am -Pgithub -Dapollo_profile=dev -Dspring_datasource_url=$apollo_portal_db_url -Dspring_datasource_username=$apollo_portal_db_username -Dspring_datasource_password=$apollo_portal_db_password $META_SERVERS_OPTS
echo "==== building portal finished ===="
echo "==== starting to build client ===="
mvn clean install -DskipTests -pl apollo-client -am -Pgithub $META_SERVERS_OPTS
echo "==== building client finished ===="
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment