diff --git a/.github/workflows/deploy-dagster-cloud.yml b/.github/workflows/deploy-dagster-cloud.yml index e11b78ce..5e3dca0d 100644 --- a/.github/workflows/deploy-dagster-cloud.yml +++ b/.github/workflows/deploy-dagster-cloud.yml @@ -204,12 +204,15 @@ jobs: # Build 'hooli_bi' code location - name: Build and upload Docker image for hooli_bi - if: steps.prerun.outputs.result != 'skip' && steps.changed-files.outputs.hooli-bi_any_changed == 'true' - uses: docker/build-push-action@v5 + if: steps.prerun.outputs.result != 'skip' && steps.changed-files.outputs.hooli-bi_any_changed == 'true' + uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@v0.1.47 with: - context: ./hooli-bi - push: true - tags: ${{ env.IMAGE_REGISTRY }}:${{ env.IMAGE_TAG }}-hooli-bi + command: "ci build --location-name hooli_bi --docker-image-tag $IMAGE_TAG-hooli-bi" + #uses: docker/build-push-action@v5 + #with: + # context: ./hooli-bi + # push: true + # tags: ${{ env.IMAGE_REGISTRY }}:${{ env.IMAGE_TAG }}-hooli-bi # Build pipes example container - name: Build and upload Docker image for pipes example diff --git a/hooli-bi/Dockerfile b/hooli-bi/Dockerfile index c4bb768b..579a3db8 100644 --- a/hooli-bi/Dockerfile +++ b/hooli-bi/Dockerfile @@ -4,6 +4,7 @@ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim WORKDIR /opt/dagster/app + # Enable bytecode compilation ENV UV_COMPILE_BYTECODE=1 ENV UV_PROJECT_ENVIRONMENT=/usr/local