Repository navigation
build(native-image): 更新原生镜像可达性元数据配置 #49
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
| # Flexmodel CI/CD Pipeline | |
| # Runs tests for all modules, then builds and pushes Docker images. | |
| # Deploys to production on push to main. | |
| name: Run Tests | |
| on: | |
| push: | |
| branches: [ "feature/native-image" ] | |
| jobs: | |
| push-server-native-image: | |
| name: Push server native docker image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| cache-dependency-path: '**/pom.xml' | |
| - name: Build and push server image | |
| run: | | |
| mvn -B -Dmaven.test.skip=true clean package -Pnative -pl flexmodel-server -am \ | |
| -Dquarkus.container-image.build=true \ | |
| -Dquarkus.container-image.push=true \ | |
| -Dquarkus.container-image.image=cjbi/flexmodel-server-native:latest \ | |
| -Dquarkus.container-image.username=${{ secrets.DOCKER_USERNAME }} \ | |
| -Dquarkus.container-image.password=${{ secrets.DOCKER_PASSWORD }} |