mirror of
https://github.com/chatopera/cosin.git
synced 2025-06-25 02:47:10 +08:00
https://github.com/cskefu/cskefu/issues/830 enable circleci job
This commit is contained in:
parent
11575b0102
commit
e43bfef82f
32
.circleci/config.yml
Normal file
32
.circleci/config.yml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
||||||
|
# See: https://circleci.com/docs/configuration-reference
|
||||||
|
version: 2.1
|
||||||
|
|
||||||
|
# Define a job to be invoked later in a workflow.
|
||||||
|
# See: https://circleci.com/docs/configuration-reference/#jobs
|
||||||
|
jobs:
|
||||||
|
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
|
||||||
|
package:
|
||||||
|
# These next lines define a Docker executor: https://circleci.com/docs/executor-types/
|
||||||
|
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
|
||||||
|
# Be sure to update the Docker image tag below to openjdk version of your application.
|
||||||
|
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk
|
||||||
|
docker:
|
||||||
|
- image: cimg/openjdk:11.0
|
||||||
|
# Add steps to the job
|
||||||
|
# See: https://circleci.com/docs/configuration-reference/#steps
|
||||||
|
steps:
|
||||||
|
# Checkout the code as the first step.
|
||||||
|
- checkout
|
||||||
|
# Use mvn clean and package as the standard maven build phase
|
||||||
|
- run:
|
||||||
|
name: Package
|
||||||
|
command: cd contact-center && ./admin/package.sh
|
||||||
|
|
||||||
|
# Invoke jobs via workflows
|
||||||
|
# See: https://circleci.com/docs/configuration-reference/#workflows
|
||||||
|
workflows:
|
||||||
|
sample: # This is the name of the workflow, feel free to change it to better match your workflow.
|
||||||
|
# Inside the workflow, you define the jobs you want to run.
|
||||||
|
jobs:
|
||||||
|
- package
|
18
.github/workflows/dockerize.yml
vendored
18
.github/workflows/dockerize.yml
vendored
@ -1,18 +0,0 @@
|
|||||||
name: Package
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [master, develop]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: [self-hosted]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
- run: |
|
|
||||||
cd $GITHUB_WORKSPACE && pwd
|
|
||||||
if [ ! -d .git ]; then git init; git config user.email "you@dummy.com"; git config user.name "dummy"; git add --all && git commit -q -m "Only fix mvn goals for github workflow"; fi
|
|
||||||
if [ -f ~/.cskefu.rc ]; then source ~/.cskefu.rc; else echo "Not found ~/.cskefu.rc; find info with https://github.com/cskefu/cskefu/issues/688"; exit 1; fi
|
|
||||||
java -version && mvn -version
|
|
||||||
$GITHUB_WORKSPACE/public/plugins/scripts/install-all.sh
|
|
||||||
cd $GITHUB_WORKSPACE/contact-center && ./admin/build.sh && ./admin/push.sh
|
|
Loading…
x
Reference in New Issue
Block a user