Skip to content

Commit

Permalink
add github registery
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 7, 2021
1 parent 1f7e335 commit 51daaa1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ jobs:
env:
AWS_REGION: us-east-1

- name: Login to Github
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set tag version
id: tag
# https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
Expand All @@ -134,6 +141,7 @@ jobs:
push: true
tags: |
developmentseed/titiler:latest
ghcr.io/${{ github.repo }}:latest
public.ecr.aws/${{ secrets.AWS_ECR_PUBLIC_REPO }}/titiler:latest
# Push `{VERSION}` when pushing a new tag
Expand All @@ -146,4 +154,5 @@ jobs:
push: true
tags: |
developmentseed/titiler:${{ steps.tag.outputs.tag }}
ghcr.io/${{ github.repo }}:${{ steps.tag.outputs.tag }}
public.ecr.aws/${{ secrets.AWS_ECR_PUBLIC_REPO }}/titiler:${{ steps.tag.outputs.tag }}
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,18 @@ $ uvicorn titiler.application.main:app --reload

## Docker

Ready to use/deploy images can be found on Docker Hub and AWS public ECR registery.
Ready to use/deploy images can be found on DockerHub, Github and AWS public ECR registeries.

- GitHub: https://github.com/developmentseed/titiler/pkgs/container/titiler

```bash
docker run --name titiler \
-p 8000:8000 \
--env PORT=8000 \
--env WORKERS_PER_CORE=1 \
--rm -it ghcr.io/developmentseed/titiler:latest
```


- Docker Hub: https://hub.docker.com/repository/docker/developmentseed/titiler

Expand All @@ -95,7 +106,7 @@ docker run --name titiler \
-p 8000:8000 \
--env PORT=8000 \
--env WORKERS_PER_CORE=1 \
--rm -it developmentseed/titiler
--rm -it developmentseed/titiler:latest
```

- AWS ECR: https://gallery.ecr.aws/developmentseed/titiler
Expand All @@ -105,7 +116,7 @@ docker run --name titiler \
-p 8000:8000 \
--env PORT=8000 \
--env WORKERS_PER_CORE=1 \
--rm -it public.ecr.aws/developmentseed/titiler
--rm -it public.ecr.aws/developmentseed/titiler:latest
```

- Built the docker locally
Expand Down

0 comments on commit 51daaa1

Please sign in to comment.