mirror of
https://github.com/chatopera/cosin.git
synced 2025-07-20 04:23:01 +08:00
https://github.com/cskefu/cskefu/issues/830 dockerize build and push
This commit is contained in:
parent
4635acaf52
commit
306e06e5b6
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user