-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Co-authored-by: Himadri Singh <[email protected]>
- Loading branch information
1 parent
0f03606
commit 3a5f477
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.