Skip to content

Github Action to publish unique images to Digital Ocean's Container Registry based on the commit SHA

License

Notifications You must be signed in to change notification settings

ripplr-io/docr-docker-publish

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

DigitalOcean Docker Image Publish

This action uses doctl to upload docker images to Digital Ocean's Container Registry.

PRs are welcome.

Usage

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.

Example:

    - name: Publish Image to Container Registry
      uses: ripplr-io/docr-docker-publish@v1
      with:
        image_path: registry-path/image-path

Inputs

  • image_path - (Required) Image path in the registry. In the format registry-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) The docker build context. Default is '.'.

Outputs

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.

License

This GitHub Action and associated scripts and documentation in this project are released under the MIT License.

About

Github Action to publish unique images to Digital Ocean's Container Registry based on the commit SHA

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published