This action uses doctl to upload docker images to Digital Ocean's Container Registry.
PRs are welcome.
Add this step to a job to automatically build an image from the Dockerfile and publish it with a unique tag (based on the commit SHA). The image will also be tagged with latest.
- name: Publish Image to Container Registry
uses: ripplr-io/docr-docker-publish@v1
with:
image_path: registry-path/image-pathimage_path- (Required) Image path in the registry. In the formatregistry-name/image-name.sha_size- (Optional) Number of characters from the commit SHA. Default is'8'dockerfile- (Optional) The path + name of the Dockerfile you want to build (-f flag). Default is'Dockerfile'Example:./docker/dev.Dockerfile.docker_build_context- (Optional) Thedocker buildcontext. Default is'.'.
The urls of the uploaded images will be accessible with the variables:
image_url- Url of the uploaded image with the SHA tag.image_latest_url- Url of the uploaded image with the latest tag.
This GitHub Action and associated scripts and documentation in this project are released under the MIT License.