Skip to content

Commit

Permalink
Deploy tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Feb 12, 2024
1 parent ad9da21 commit f8dd27a
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,38 @@ jobs:
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy
run: flyctl deploy --config proxy.fly.toml --local-only

# deploy-tiles:
# name: Deploy proxy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
#
# - uses: superfly/flyctl-actions/setup-flyctl@master
#
# - run: flyctl deploy --config proxy.fly.toml --local-only
run: |
flyctl deploy --config proxy.fly.toml --local-only
deploy-tiles:
name: Deploy tiles
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup Fly
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Download data
run: |
curl --progress-bar https://download.geofabrik.de/europe/netherlands-latest.osm.pbf --output netherlands.osm.pbf
- name: Import data
run: |
docker compose run --build import
- name: Generate tiles
run: |
docker compose up --build martin-cp
- name: Print tiles summary
run: |
docker run --rm -it -v $PWD:/code --entrypoint mbtiles ghcr.io/maplibre/martin summary /code/tiles/tiles.mbtiles
- name: Deploy
run: |
flyctl deploy --config martin-static.fly.toml --local-only

0 comments on commit f8dd27a

Please sign in to comment.