Skip to content

Commit

Permalink
Build Druid image for unit tests (#2432)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Himadri Singh <[email protected]>
  • Loading branch information
3 people authored May 22, 2023
1 parent 0f03606 commit 3a5f477
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/druid-test-image.yml
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.

0 comments on commit 3a5f477

Please sign in to comment.