-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIVE-27277: GH actions to build and push docker image
Set up github actions workflow to build and push docker image to docker hub
- Loading branch information
1 parent
1f5fb1b
commit 2c09d78
Showing
4 changed files
with
90 additions
and
8 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,63 @@ | ||
name: Build and Publish docker images for Hive GA | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build and push Hive 4.0.0-alpha-2 | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./packaging/src/docker/ | ||
file: ./packaging/src/docker/Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/hive:test-image | ||
build-args: | ||
| | ||
HIVE_VERSION=4.0.0-alpha-2 | ||
HADOOP_VERSION=3.3.1 | ||
TEZ_VERSION=0.10.2 | ||
BUILD_ENV=deploy | ||
- | ||
name: Build and push Hive 4.0.0-alpha-1 | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./packaging/src/docker/ | ||
file: ./packaging/src/docker/Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/hive:4.0.0-alpha-1 | ||
build-args: | ||
| | ||
HIVE_VERSION=4.0.0-alpha-1 | ||
HADOOP_VERSION=3.1.0 | ||
TEZ_VERSION=0.10.1 | ||
BUILD_ENV=deploy | ||
- | ||
name: Build and push Hive 3.1.3 | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./packaging/src/docker/ | ||
file: ./packaging/src/docker/Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/hive:3.1.3 | ||
build-args: | ||
| | ||
HIVE_VERSION=3.1.3 | ||
HADOOP_VERSION=3.1.0 | ||
TEZ_VERSION=0.9.1 | ||
BUILD_ENV=deploy |
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
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
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