https://github.com/shimwell/example-dockerhub-upload
A minimal demonstration of Github Actions used to build a dockerfile and upload a dockerimage to dockerhub. This action is triggered with a push to main, develop or new release (which also tags the version)
https://github.com/shimwell/example-dockerhub-upload
dockerhub example
Last synced: 5 months ago
JSON representation
A minimal demonstration of Github Actions used to build a dockerfile and upload a dockerimage to dockerhub. This action is triggered with a push to main, develop or new release (which also tags the version)
- Host: GitHub
- URL: https://github.com/shimwell/example-dockerhub-upload
- Owner: shimwell
- License: mit
- Created: 2020-10-19T19:38:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-06T20:06:03.000Z (about 5 years ago)
- Last Synced: 2024-06-12T17:43:45.990Z (over 1 year ago)
- Topics: dockerhub, example
- Language: Dockerfile
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# example-dockerhub-upload
This minimal repository has example Github Action yml files that trigger on
events and will build a new docker image and upload it to dockerhub with an
appropriate tag.
- pushing to main branch will build and upload a docker image with the latest tag
- creating a release will build and upload a docker image with the version number as tag
- pushing to develop branch will build and upload a docker image with the develop tag
To demonstrate the use of build-arg when builind a dockerfile there are two
additional docker images made. One where the .yml file passes a false value to
the build args and one where a true value is passed.
- pushing to develop branch will build and upload a docker image with the develop=with-true tag
- pushing to develop branch will build and upload a docker image with the develop=with-false tag
Docker images that have been automatically build and uploaded can be seen here https://hub.docker.com/repository/docker/shimwell/example-dh-upload
A history of Actions can be seen here https://github.com/Shimwell/example-dockerhub-upload/actions