Skip to content

Commit

Permalink
Merge pull request #55 from planetary-social/update-deployment-instru…
Browse files Browse the repository at this point in the history
…ctions

Update README.md with deployment instructions
  • Loading branch information
dcadenas authored Jul 30, 2024
2 parents 39c3411 + 7ee9ffa commit dbc0e6b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,5 +272,16 @@ flowchart TB

## Deployment

We deploy this service using [ansible](https://github.com/planetary-social/ansible-scripts). The steps for deployment can be read in our [internal notion page](https://www.notion.so/nossocial/Deploying-services-via-Ansible-2b8d01a60d2441e197d4e03d3274c9ef?pvs=4).
1. **Obtain a Github Token:**
Follow the instructions in the [GitHub documentation](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) to get a personal access token (classic).

2. **Log in to GitHub Container Registry:**
```sh
echo \$CR_PAT | docker login ghcr.io -u \$GITHUB_USERNAME --password-stdin
```

3. **Tag the Image:**
Tag the image with the `stable` tag as described in the [GitHub documentation](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).

4. **Trigger the Image Update Process:**
The image update process checks for new tags every 3 minutes. Therefore, you should see the new image deployed in approximately 5 minutes.

0 comments on commit dbc0e6b

Please sign in to comment.