Skip to content

Commit

Permalink
Merge pull request #10 from UNDP-Data/feat/cicd
Browse files Browse the repository at this point in the history
Feat/cicd
  • Loading branch information
iferencik authored Nov 10, 2023
2 parents 8876261 + ae68cd1 commit dfa0e14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: cogserver

jobs:
build-and-push-image:
Expand All @@ -15,7 +15,6 @@ jobs:
contents: read
packages: write


steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -33,9 +32,6 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# - name: Copy .env file
# run: cp "gdal_rio.env" gdal_rio.env

- name: Read gdal_rio.env file and set environment variables
run: |
while IFS= read -r line; do
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ RUN pipenv run pip install uvicorn titiler asyncpg postgis --no-cache-dir --upg


COPY src/cogserver cogserver
COPY gdal_rio.env .

CMD pipenv run uvicorn cogserver:app --host ${HOST} --port ${PORT}
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ services:
# Enable the following volumes if you want to mount source code to Docker
# volumes:
# - "./app/wmts.py:/opt/wmts/wmts.py"
# env_file:
# - gdal_rio.env
env_file:
- gdal_rio.env
ports:
- 8000:80
# environment:
Expand Down

0 comments on commit dfa0e14

Please sign in to comment.