garris / BackstopJS

Catch CSS curve balls.
http://backstopjs.org
MIT License
6.66k stars 602 forks source link

feat: docker hub build/push action (#1546) #1551

Closed dgrebb closed 4 months ago

dgrebb commented 4 months ago

This adds a GitHub Workflow to build the multi-architecture Docker image, sign into Docker Hub, and push the image.

It uses the current version property in package.json as its tag, the same way npm run build-and-publish or publish-docker do.

Requirements

  1. Create a Docker Hub Access Token (this link will prompt you after login)
  2. Add two Actions Secrets
    1. DOCKERHUB_TOKEN
    2. DOCKERHUB_USERNAME

image

Example

Here's the workflow in action. It fails because my Docker Hub account is not owner of backstopjs. Not the build successes for amd as well as arm.

Hope this helps!

garris commented 4 months ago

Thank you @dgrebb for keeping this project on-track! Much gratitude! 🙏