-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HIVE-27277: GH actions to build and push docker image #4298
Conversation
Set up github actions workflow to build and push docker image to docker hub
ONBUILD RUN apt-get update && apt-get -y install wget | ||
ONBUILD RUN wget https://archive.apache.org/dist/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \ | ||
wget https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz && \ | ||
wget https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: When we create a rel/release-, in Dockerfile we get the hive tarball from https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz, I'm not sure it would be there on the event rel/release- created.
Kudos, SonarCloud Quality Gate passed! |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.8) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Set up github actions workflow to build and push docker image to docker hub
Hi Everyone,
I have got the docker hub repository setup for Apache hive from Infra.
https://issues.apache.org/jira/browse/INFRA-24505
DockerHub: https://hub.docker.com/r/apache/hive
In this PR I have set up GitHub actions workflow to to automatically publish the docker image to Docker hub on every release. The workflow is triggered when a rel/release-* tag is created.
The workflow was tested on a hive fork:
https://github.com/simhadri-g/hive/actions/runs/4892994049
The image was successfully pushed here by the action when a release tag was created:
https://hub.docker.com/repository/docker/simhadri064/4.0.0-snapshot/general
What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?