Skip to content

Commit

Permalink
build updated data image
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Jan 12, 2025
1 parent 8d9bbd2 commit 1bb3291
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/nightly-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,22 @@ jobs:
docker pull ghcr.io/hiddewie/openrailwaymap-data:${{ matrix.bbox }}
CONTAINER_ID="$(docker container create ghcr.io/hiddewie/openrailwaymap-data:${{ matrix.bbox }})"
docker cp "$CONTAINER_ID:/data/data.osm.pbf" data/data.osm.pbf
docker container rm "$CONTAINER_ID"
- name: Update data
run: |
docker compose run --build --entrypoint ./update.sh -e "BBOX=${{ matrix.bbox }}" import
- name: List data
run: |
ls -lah data/*.osm.pbf
- name: Build updated data image
run: |
echo '**' > .dockerignore
echo '!data/data.osm.pbf' >> .dockerignore
docker build import -f data.Dockerfile -t ghcr.io/hiddewie/openrailwaymap-data:${{ matrix.bbox }}
- name: Push updated data
run: |
docker push ghcr.io/hiddewie/openrailwaymap-data:${{ matrix.bbox }}
Expand Down

0 comments on commit 1bb3291

Please sign in to comment.