Skip to content

Commit

Permalink
build import, remove DB image
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Jan 12, 2025
1 parent 442d9a1 commit 47e52f0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,27 @@ jobs:
run: |
flyctl deploy --config proxy.fly.toml --local-only
build-import:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/hiddewie/openrailwaymap-import:latest
cache-from: type=gha
cache-to: type=gha,mode=max

generate-tiles:
name: Generate tiles
needs: build-import
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -116,9 +135,13 @@ jobs:
docker cp "$CONTAINER_ID:/data/data.osm.pbf" data/data.osm.pbf
docker container rm "$CONTAINER_ID"
- name: Build and start database
run: |
docker compose up --build db
- name: Import data
run: |
docker compose run --build import import
docker compose run import import
- name: Generate tiles
env:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
services:
db:
image: ghcr.io/hiddewie/openrailwaymap-import-db:latest
build:
context: db
command: |
Expand Down

0 comments on commit 47e52f0

Please sign in to comment.