From 3a5f4775fe314e9712075e96cb52551dc1350dbe Mon Sep 17 00:00:00 2001 From: Egor Riashin Date: Mon, 22 May 2023 14:41:15 +0300 Subject: [PATCH] Build Druid image for unit tests (#2432) * Druid image for tests * Update .github/workflows/druid-test-image.yml * Druid image for tests * Druid image for tests * Druid image for tests * Druid image for tests --------- Co-authored-by: egor-ryashin Co-authored-by: Himadri Singh --- .github/workflows/druid-test-image.yml | 36 +++++++++++++++++++ .../druid-micro.dockerfile | 0 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/druid-test-image.yml rename runtime/drivers/druid/Dockerfile => scripts/druid-micro.dockerfile (100%) diff --git a/.github/workflows/druid-test-image.yml b/.github/workflows/druid-test-image.yml new file mode 100644 index 00000000000..dc48e21fe7e --- /dev/null +++ b/.github/workflows/druid-test-image.yml @@ -0,0 +1,36 @@ +name: Build Druid image for tests + +on: + pull_request: + paths: + - "scripts/druid-micro.dockerfile" + - ".github/workflows/druid-test-image.yml" + +jobs: + release: + name: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Authenticate GCloud + uses: google-github-actions/auth@v1 + with: + credentials_json: "${{ secrets.RILL_BINARY_SA }}" + + - name: Set up GCloud SDK + uses: google-github-actions/setup-gcloud@v1 + + - name: Build & Publish Rill docker image + run: |- + cd scripts + + gcloud auth configure-docker + + docker build -f druid-micro.dockerfile --build-arg DRUID_VERSION=${{ env.DRUID_VERSION }} -t gcr.io/rilldata/druid-micro:${{ env.DRUID_VERSION }} . + docker tag gcr.io/rilldata/druid-micro:${{ env.DRUID_VERSION }} gcr.io/rilldata/druid-micro + docker push gcr.io/rilldata/druid-micro:${{ env.DRUID_VERSION }} + docker push gcr.io/rilldata/druid-micro + env: + DRUID_VERSION: 25.0.0 diff --git a/runtime/drivers/druid/Dockerfile b/scripts/druid-micro.dockerfile similarity index 100% rename from runtime/drivers/druid/Dockerfile rename to scripts/druid-micro.dockerfile