From beac7580f658388fcd431d41bc45fdb05a9c480b Mon Sep 17 00:00:00 2001 From: xiphl Date: Thu, 25 Jan 2024 15:13:24 +0800 Subject: [PATCH] update ingest-api build step --- .github/workflows/docker-unified.yml | 2 +- docker/ingest-api/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-unified.yml b/.github/workflows/docker-unified.yml index 2ccda4e088e70..1570dcc6daac9 100644 --- a/.github/workflows/docker-unified.yml +++ b/.github/workflows/docker-unified.yml @@ -892,7 +892,7 @@ jobs: - name: Check out the repo uses: actions/checkout@v2 with: - fetch-depth: 0 + fetch-depth: 800 - name: Build and push uses: ./.github/actions/docker-custom-build-and-push with: diff --git a/docker/ingest-api/Dockerfile b/docker/ingest-api/Dockerfile index 45e8cede085c7..b4e636185e5ff 100644 --- a/docker/ingest-api/Dockerfile +++ b/docker/ingest-api/Dockerfile @@ -5,7 +5,7 @@ RUN apt update && apt install -y build-essential python3-dev # FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim as base FROM openjdk:8 as prod-build COPY . /datahub-src -RUN cd /datahub-src && ./gradlew :metadata-events:mxe-schemas:build +RUN cd /datahub-src && ./gradlew :metadata-ingestion:codegen FROM base as prod-codegen COPY --from=prod-build /datahub-src /datahub-src