api3dao / api3-dao-dashboard

API3 DAO dashboard
api3.eth/
14 stars 10 forks source link

Add docker build and push CI workflow #359

Closed dcroote closed 1 year ago

dcroote commented 1 year ago

Closes DAO-228 and DAO-161 (the latter once the secrets DOCKERHUB_USERNAME and DOCKERHUB_TOKEN are saved in the repo Settings).

This workflow builds the Docker image on a push to either main or production, whereas login & push to Docker Hub occurs only on the production branch. The production image is tagged with both latest and the SHA in the form of sha-#######.

I've tested this on my fork:

dcroote commented 1 year ago

Whoops sorry for this failing on main after merge- I didn't think main would need the secrets given the absence of docker login & push, but forgot about the 'secret' being used in the image name. @mcoetzee if you are able to add secrets then adding DOCKERHUB_USERNAME as api3 should fix it.