refactor: consolidate route management under RouteService #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Refactor Deploy Docker Images | |
| # on branch refactor/v2 | |
| on: | |
| push: | |
| branches: | |
| - refactor/v2 | |
| concurrency: | |
| group: deploy-refactor | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v2 | |
| with: | |
| distribution: 'adopt' | |
| java-version: '8' | |
| - name: Cache local Maven repository | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: crpi-acfbb78v5d28coxq.cn-shenzhen.personal.cr.aliyuncs.com | |
| username: xlcyun | |
| password: ${{ secrets.REFACTOR_ALIYUN_CR_PASSWORD }} | |
| - uses: docker/setup-buildx-action@v3 | |
| with: | |
| install: true | |
| - name: Cache Docker layers | |
| uses: actions/cache@v4 | |
| with: | |
| path: /tmp/.buildx-cache | |
| key: ${{ runner.os }}-buildx-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-buildx- | |
| - run: make package publish-image Repo=crpi-acfbb78v5d28coxq.cn-shenzhen.personal.cr.aliyuncs.com/xlcyun_public Tag=latest | |
| - run: | | |
| curl -X POST \ | |
| -H "X-Api-Key: ${{ secrets.REFACTOR_ROLLOUT_WEBHOOK_API_KEY }}" \ | |
| "${{ secrets.REFACTOR_ROLLOUT_WEBHOOK_ENDPOINT }}/rollout" |