提交 59cf59f4 编辑于 作者: openaiops's avatar openaiops
浏览文件

Initial commit

上级
加载中
加载中
加载中
加载中
+53 −0
原始行号 差异行号 差异行
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

<!-- 
Please use this template while reporting a bug and provide as much info as possible.
Not doing so may result in your bug not being addressed in a timely manner. Thanks!
An example for helping you to open your own issue can be found at there:
https://github.com/Humbertzhang/train-ticket/issues/1
 -->

### Summary


### Expected behaviour
<!--- Tell us what should happen -->


### Current behaviour
<!--- Tell us what happens instead of the expected behavior -->


### Steps to reproduce 
<!--- As minimally and precisely as possible -->


### Your environment

OS(e.g: `cat /etc/os-release`):

docker version(e.g `docker version`): 

<!--- If you use docker-compose to deploy --> 
docker-compose version (e.g `docker-compose --version`):

<!--- If you use Kubernetes to deploy --> 
Kubernetes version(use `kubectl version`):

<!--- If your issue is about istio -->
istio version: 


### Additional context
<!--- Add any other context about the problem here -->


### Search result and your thoughts
<!--- You can post useful information and your thoughts after searching for the bug -->
+20 −0
原始行号 差异行号 差异行
---
name: Enhancement request
about: Create an enhancement request
title: ''
labels: enhancement
assignees: ''

---

<!--
Please use this template for submitting enhancement requests 
-->

### What would you like to be added


### Why is this needed


### Additional context
+23 −0
原始行号 差异行号 差异行
### Description
<!--- Describe your changes in detail -->


### Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [ ] Normal change (add test case, fix some typo, uniform code style and so on)
- [ ] Bug fix (non-breaking change which fixes an issue or a problem you found)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)


### How Has This Been Tested?
<!--- Please describe how you tested your changes. -->


### Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->

- [ ] All new and existing tests passed.
- [ ] I have added tests to cover my changes.
- [ ] My change requires a change to the documentation.
+41 −0
原始行号 差异行号 差异行
name: Deploy Docker Images

on:
  push:
    tags:
      - v[0-9]+.[0-9]+.[0-9]+

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-java@v2
        with:
          distribution: 'adopt'
          java-version: '8'
      - name: Cache local Maven repository
        uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
          restore-keys: |
            ${{ runner.os }}-maven-

      - uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKER_HUB_USERNAME }}
          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
      - uses: docker/setup-buildx-action@v1
        with:
          install: true
      - name: Cache Docker layers
        uses: actions/cache@v2
        with:
          path: /tmp/.buildx-cache
          key: ${{ runner.os }}-buildx-${{ github.sha }}
          restore-keys: |
            ${{ runner.os }}-buildx-

      - run: make package publish-image Repo=${{ secrets.DOCKER_HUB_USERNAME }} Tag=${GITHUB_REF#refs/tags/v}
+28 −0
原始行号 差异行号 差异行
name: Deploy Maven packages

on:
  release:
    types:
      - created

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-java@v2
        with:
          distribution: 'adopt'
          java-version: '8'
      - name: Cache local Maven repository
        uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
          restore-keys: |
            ${{ runner.os }}-maven-
      - name: Publish package
        run: mvn --batch-mode deploy -DskipTests
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}