Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Release 2024-01-26 #85

Merged
merged 6 commits into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -15,8 +15,6 @@ SKIP_TAG_FILTER=0 # skips tag filtering
DEBUG=1 # enables the generation of exclude tables
ID_FILTER='' # if not empty only the objects with these ids are processed. See https://docs.osmcode.org/osmium/latest/osmium-getid.html

# Internal API secret
API_SECRET=myapisecret

# Token for Synology log. Leave blank to disable logging
SYNOLOGY_LOG_TOKEN=
4 changes: 1 addition & 3 deletions .github/workflows/deployment.production.yml
Original file line number Diff line number Diff line change
@@ -10,9 +10,7 @@ jobs:
uses: ./.github/workflows/deployment.yml
with:
ENVIRONMENT: production
URL: https://tiles.radverkehrsatlas.de
TILES_URL: tiles.radverkehrsatlas.de
API_URL: api.radverkehrsatlas.de
URL: tiles.radverkehrsatlas.de
secrets:
SERVICE_NAME: ${{ secrets.SERVICE_NAME }}
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
4 changes: 1 addition & 3 deletions .github/workflows/deployment.staging.yml
Original file line number Diff line number Diff line change
@@ -10,9 +10,7 @@ jobs:
uses: ./.github/workflows/deployment.yml
with:
ENVIRONMENT: staging
URL: https://staging-tiles.radverkehrsatlas.de
TILES_URL: staging-tiles.radverkehrsatlas.de
API_URL: staging-api.radverkehrsatlas.de
URL: staging-tiles.radverkehrsatlas.de
secrets:
SERVICE_NAME: ${{ secrets.SERVICE_NAME }}
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
28 changes: 2 additions & 26 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -36,19 +36,13 @@ on:
URL:
type: string
required: true
TILES_URL:
type: string
required: true
API_URL:
type: string
required: true

jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment:
name: ${{ inputs.ENVIRONMENT }}
url: ${{ inputs.URL }}
url: https://${{ inputs.URL }}
steps:
- uses: actions/checkout@v4

@@ -89,22 +83,6 @@ jobs:
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/n0p8j4k5/
docker push public.ecr.aws/n0p8j4k5/atlas/app:${{ github.sha }}

- name: Build api image
uses: docker/build-push-action@v5
with:
context: .
file: ./api.Dockerfile
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: public.ecr.aws/n0p8j4k5/atlas/api:${{ github.sha }}

- name: Push API image
run: |
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/n0p8j4k5/
docker push public.ecr.aws/n0p8j4k5/atlas/api:${{ github.sha }}

- name: Copy files to server
uses: appleboy/scp-action@master
with:
@@ -134,10 +112,8 @@ jobs:
echo PGPASSWORD='${{ secrets.DATABASE_PASSWORD }}' >> .env
echo PGDATABASE='${{ secrets.DATABASE_NAME }}' >> .env
echo OSM_DOWNLOAD_URL='${{ vars.OSM_DOWNLOAD_URL }}' >> .env
echo TILES_URL='${{ inputs.TILES_URL }}' >> .env
echo API_URL='${{ inputs.API_URL }}' >> .env
echo URL='${{ inputs.URL }}' >> .env
echo GITHUB_SHA='${{ github.sha }}' >> .env
echo API_SECRET=$(echo $RANDOM | md5sum | head -c 20) >> .env
echo "Reload containers"
docker compose -f docker-compose.traefik.yml up -d
docker compose up -d
7 changes: 0 additions & 7 deletions api.Dockerfile

This file was deleted.

24 changes: 0 additions & 24 deletions api/INIT_FUNCTIONS.sql

This file was deleted.

65 changes: 0 additions & 65 deletions api/INIT_VERIFICATION_VIEWS.sql

This file was deleted.

3 changes: 0 additions & 3 deletions api/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions api/db.py

This file was deleted.

45 changes: 0 additions & 45 deletions api/db_configuration.py

This file was deleted.

40 changes: 0 additions & 40 deletions api/generate_test_data.py

This file was deleted.

Loading