celestiaorg / supply

API that returns the current circulating and total supply of TIA
https://supply.celestia.org
3 stars 2 forks source link

Deploy via CI #8

Closed rootulp closed 11 months ago

rootulp commented 1 year ago

Problem

https://github.com/celestiaorg/supply/blob/4dadc398d7f5ffeaa109e01c5e0377fc99514ef4/README.md?plain=1#L23

The process running on the Digital Ocean server went down

Proposal

Set up CI to deploy this repo somewhere

rootulp commented 11 months ago

After we do https://github.com/celestiaorg/supply/issues/16 we can explore deploying via CI

rootulp commented 11 months ago

hmm @Bidon15 is the container deployment something we can automate via CI?

rootulp commented 11 months ago

I just ran through the manual steps to do this. The manual steps are:

# Generate a Docker image
make docker-build

# Retag the Docker image so that it can be pushed to a Scaleway container registry
docker tag celestiaorg/supply rg.fr-par.scw.cloud/supply/supply:latest

# Push the Docker image
docker push rg.fr-par.scw.cloud/supply/supply:latest

Then navigate to Scaleway console and deploy a container using that image. So it looks like a prerequisite to this task is add a CI job that generates the Docker image and pushes it to Scaleway.

rootulp commented 11 months ago

Verified that CI can push the Docker image in https://github.com/celestiaorg/supply/actions/runs/6896339674/job/18762245047#step:7:15

and it shows up in Scaleway

Screenshot 2023-11-16 at 3 53 44 PM
rootulp commented 11 months ago

The next step is getting CI to update the deployed container to use the newly pushed image

rootulp commented 11 months ago

Closing as won't do because we haven't had to re-deploy after launch