1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-07-20 04:23:01 +08:00
This commit is contained in:
Hai Liang Wang 2023-06-15 13:34:10 +08:00
parent 4635acaf52
commit 306e06e5b6
2 changed files with 14 additions and 4 deletions

View File

@ -21,7 +21,18 @@ jobs:
# Use mvn clean and package as the standard maven build phase # Use mvn clean and package as the standard maven build phase
- run: - run:
name: Package name: Package
command: cd contact-center && ./admin/build.sh command: cd contact-center && ./admin/package.sh
publish:
docker:
- image: circleci/buildpack-deps:stretch
steps:
- setup_remote_docker
- run:
name: Publish Docker Image to Docker Hub
command: |
echo "$DOCKERHUB_USERPASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
cd contact-center && ./admin/build.sh && ./admin/push.sh
# Invoke jobs via workflows # Invoke jobs via workflows
# See: https://circleci.com/docs/configuration-reference/#workflows # See: https://circleci.com/docs/configuration-reference/#workflows
@ -30,3 +41,4 @@ workflows:
# Inside the workflow, you define the jobs you want to run. # Inside the workflow, you define the jobs you want to run.
jobs: jobs:
- package - package
- publish

View File

@ -17,9 +17,7 @@ imagename=cskefu/contact-center
cd $appHome cd $appHome
TIMESTAMP=`date "+%Y%m%d.%H%M%S"` TIMESTAMP=`date "+%Y%m%d.%H%M%S"`
PACKAGE_VERSION=`git rev-parse --short HEAD` PACKAGE_VERSION=`git rev-parse --short HEAD`
APPLICATION_CUSTOMER_ENTITY=${APPLICATION_CUSTOMER_ENTITY:-"Chatopera CC Cloud"} APPLICATION_CUSTOMER_ENTITY=${APPLICATION_CUSTOMER_ENTITY:-"OpenSource Community"}
$baseDir/package.sh
if [ ! $? -eq 0 ]; then if [ ! $? -eq 0 ]; then
exit 1 exit 1