diff --git a/.github/workflows/build-serving.yaml b/.github/workflows/build-serving.yaml deleted file mode 100644 index 1d93dc1..0000000 --- a/.github/workflows/build-serving.yaml +++ /dev/null @@ -1,88 +0,0 @@ -name: build-push-serving - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -on: -# schedule: -# - cron: '40 16 * * *' - push: - branches: [ "feature/ml-serving-service" ] - # Publish semver tags as releases. - #tags: [ 'v*.*.*' ] - pull_request: - branches: [ "dev","main" ] - -env: - # Use docker.io for Docker Hub if empty - REGISTRY: ghcr.io - # github.repository as / - IMAGE_NAME: ${{ github.repository }} - -jobs: - build-scan-push: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' - uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Build and load - uses: docker/build-push-action@v4 - with: - load: true - context: ./serving-service - file: ./serving-service/Dockerfile - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - - name: Scan for vulnerabilities - id: scan - uses: crazy-max/ghaction-container-scan@v3 - with: - image: ${{ steps.meta.outputs.tags }} - dockerfile: ./serving-service/Dockerfile - - - - name: Upload SARIF file - if: ${{ steps.scan.outputs.sarif != '' }} - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: ${{ steps.scan.outputs.sarif }} - - - - name: Build and push Docker image - id: build-and-push - uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 - with: - context: ./serving-service - file: ./serving-service/Dockerfile - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max \ No newline at end of file diff --git a/.github/workflows/build-test-push-serving.yml b/.github/workflows/build-test-push-serving.yml index 67a5777..e445af9 100644 --- a/.github/workflows/build-test-push-serving.yml +++ b/.github/workflows/build-test-push-serving.yml @@ -1,4 +1,4 @@ -name: Build, Test and Push Serving-Servcie to GitHub Container Registry +name: Build, Test and Push Serving Servcie to GitHub Container Registry on: push: branches: [ "main", "dev", "feature/ml-serving-service" ] diff --git a/.github/workflows/test-serving.yml b/.github/workflows/test-serving.yml deleted file mode 100644 index a202e50..0000000 --- a/.github/workflows/test-serving.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Test serving-service with docker-compose -on: - push: - branches: [ "feature/ml-serving-service" ] - # Publish semver tags as releases. - #tags: [ 'v*.*.*' ] - pull_request: - branches: [ "dev","main" ] - - -jobs: - test-and-report: - runs-on: ubuntu-latest - timeout-minutes: 2 - steps: - - - name: checkout - uses: actions/checkout@v2 - - - name: run test - working-directory: ./serving-service - run: make test - - - - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: always() - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - files: ./serving-service/test/test-results/*.xml - - - name: TearDown - working-directory: ./serving-service - run: make down \ No newline at end of file