Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
513 commits
Select commit Hold shift + click to select a range
c8781fc
Merge branch 'master' of github.com:hiddewie/OpenRailwayMap-vector
hiddewie Feb 24, 2025
216b750
Add Belgian signals (#245)
TheSikal Feb 24, 2025
81ceb35
Update news with new features (#247)
hiddewie Mar 1, 2025
3349236
Remove cache from Osm2Psql command (#251)
hiddewie Mar 1, 2025
b42c38c
Set correct view/edit link for ways features (#237)
besentv Mar 1, 2025
6721b19
fix: remove full screen map button (#252)
hiddewie Mar 5, 2025
a372559
Add more railway facilites (#248)
besentv Mar 5, 2025
bba6f47
handle electrified=no vs. unknown electrification (#253)
mmoll Mar 5, 2025
5122b89
Improve station rendering (#254)
hiddewie Mar 5, 2025
bd32883
Add more missing german signals (#255)
besentv Mar 6, 2025
3e1fc54
Render SE Vägskyddsförsignal (#261)
hiddewie Mar 8, 2025
131891a
Run tests on pull requests from forked repositories (#263)
hiddewie Mar 8, 2025
38dabf5
Fix constructed and proposed electrification rendering at low levels …
besentv Mar 11, 2025
1c9a585
Add missing tram signals (very Karlsruhe specific) (#258)
HerrLevin Mar 11, 2025
4c5e935
fix docker build warnings (#266)
mmoll Mar 11, 2025
6e4b567
Fix API tests (order of Berlin stations) (#274)
hiddewie Mar 13, 2025
27d724f
PL - W18, W24, W32, WETCS, We (#265)
Anasmasuris Mar 13, 2025
823eb53
SE Slutpunktstopplykta (#276)
hiddewie Mar 13, 2025
fa1bef3
Fix order of Berlin API tests (#281)
hiddewie Mar 16, 2025
bf9e2a4
Split tiles deployment and deploy planet (#264)
hiddewie Mar 16, 2025
b2686e6
Render tiles for entire planet (#283)
hiddewie Mar 16, 2025
67f130d
Deploy planet, part 2 (#284)
hiddewie Mar 17, 2025
5ad2d35
Let tile regions cover the entire planet (#287)
hiddewie Mar 18, 2025
353600c
Stop showing station size in the popup (#288)
hiddewie Mar 18, 2025
a1c5f8d
PL trams, W3, Sz, Wk, WKD and more light signals (#279)
Anasmasuris Mar 18, 2025
0858141
Add taginfo project file (#289)
wolfy1339 Mar 20, 2025
3fd15a0
Fix missing unknown radio icon (#292)
hiddewie Mar 20, 2025
5ddfaa3
Fix `data_url` in `taginfo.json`: `github.com` -> `raw.githubusercont…
wolfy1339 Mar 20, 2025
02647cd
Convert MBTiles to PMTiles before deploying (#296)
hiddewie Mar 22, 2025
47a2f2b
Fix colorings of locally operated switches in dark mode (#298)
hiddewie Mar 22, 2025
48f08a4
Do not render maxspeed for razed/abandoned railways (#297)
hiddewie Mar 22, 2025
ce7da86
Visualize construction of train protection systems, and ETCS levels 1…
hiddewie Mar 22, 2025
3a8ec5a
Fix depoy Github Action reference (#304)
hiddewie Mar 23, 2025
5abfc73
move swagger-ui to separate directory (#306)
hiddewie Mar 23, 2025
aa5a13f
Improve rendering of switches (#300)
hiddewie Mar 23, 2025
298700d
Fix tag for resetting switches (#309)
hiddewie Mar 25, 2025
2f03a20
Add missing EBV (Swiss) loading gauges (#308)
Singapuu Mar 25, 2025
3ea1220
More PL signals: W22, W2, W26a, W26b, W34+W28 (#301)
Anasmasuris Mar 25, 2025
cc89202
Wikidata, Mapillary, images, Wikimedia Commons, Wikipedia, note & des…
hiddewie Mar 30, 2025
ede86b9
Add more output fields in API (#314)
hiddewie Mar 30, 2025
b254103
Maplibre GL JS 5.3 (#315)
hiddewie Mar 30, 2025
ab04dac
Parse bearing on map load (#316)
hiddewie Mar 30, 2025
e4230a3
Fix secondary/tertiary feature lookup for signals with variables (#317)
hiddewie Mar 30, 2025
bce728b
Show all speed limit values in popup (#318)
hiddewie Mar 31, 2025
35fb61a
Render references for symbols in standard layer (#320)
hiddewie Apr 2, 2025
0947583
Make popup not overlap with icons (#319)
hiddewie Apr 2, 2025
243d98f
Rate limit requests (#324)
hiddewie Apr 2, 2025
72e2596
PL CT-1 and CT-2 combined (#322)
Anasmasuris Apr 4, 2025
62b60a5
Tweak rate limiting configuration (#325)
hiddewie Apr 4, 2025
64c084b
Run tests for forks (#327)
hiddewie Apr 4, 2025
b2b2164
Improve import speed for stations (#329)
hiddewie Apr 6, 2025
8611e7f
Run tests for forks (part 2) (#330)
hiddewie Apr 6, 2025
599a90d
Fonts for international scripts (#326)
hiddewie Apr 6, 2025
2642b93
Resetting switches with custom icon color (#332)
hiddewie Apr 6, 2025
e38f3b6
Import `ref:crs` (#333)
hiddewie Apr 6, 2025
92ca520
Track Circuit Block train protection (Ireland) (#334)
hiddewie Apr 6, 2025
56de7fa
Handle railway:preserved consistently (#335)
hiddewie Apr 6, 2025
a47d544
Integrate OpenHistoricalMap (#336)
hiddewie Apr 13, 2025
b1f36ec
Import and render funicular (#339)
hiddewie Apr 13, 2025
a74ec61
PL W32 graphics, W21 sign rendering (#337)
Anasmasuris Apr 13, 2025
aeaf9a6
Historical stations (#340)
hiddewie Apr 13, 2025
a8623c4
Link to OpenHistoricalMap (#341)
hiddewie Apr 13, 2025
25074b8
Rewrite nginx configuration using environment variables (#342)
hiddewie Apr 13, 2025
d138346
Fix proxy cache env (#345)
hiddewie Apr 14, 2025
4ca6edd
Fix signals not showing feature details and note/description fields (…
hiddewie Apr 14, 2025
d609777
News for March and April 2025 (#343)
hiddewie Apr 14, 2025
8df6f61
Add support for right-to-left scripts (#346)
hiddewie Apr 14, 2025
f406549
Split news into separate file (#347)
hiddewie Apr 14, 2025
52c498d
Show historical main and branch lines from lower zooms (#348)
hiddewie Apr 14, 2025
e6e7e7a
GB signals (part 2) (#352)
hiddewie Apr 19, 2025
74797dc
Fix date missing from historical layers when loading map (#353)
hiddewie Apr 19, 2025
6e427ac
Always provide OpenStreetMap attribution (#354)
hiddewie Apr 19, 2025
2195e93
GB signals (part 3) (#355)
hiddewie Apr 19, 2025
2795d66
Render yards from zoom level 8 (#356)
hiddewie Apr 19, 2025
d251558
Set replication timestamp in tile metadata (#358)
hiddewie Apr 19, 2025
71b15ab
About page (#357)
hiddewie Apr 19, 2025
b96c789
Show replication timestamp in the UI (#361)
hiddewie Apr 21, 2025
003ef4f
Render DE route signals Zs 2 and Zs 2v (#362)
hiddewie Apr 21, 2025
f7e9bf5
Places of interest: put data into YAML file (#363)
hiddewie Apr 21, 2025
689aeb6
Render retarders (rail brake) (#364)
hiddewie Apr 21, 2025
f79acf5
Improve icon coloring in standard layer (#365)
hiddewie Apr 21, 2025
b4605b9
Generate JOSM presets (#359)
hiddewie Apr 25, 2025
cc08ee1
2025 (#368)
hiddewie Apr 26, 2025
c73b4db
Preset improvements (#366)
hiddewie Apr 29, 2025
8d34bb6
Fix missing imported signal tags (#372)
hiddewie Apr 29, 2025
41dd996
Missing tags signals (#373)
hiddewie Apr 29, 2025
b173905
Update PL W9 icons (#367)
Anasmasuris Apr 29, 2025
6a2232f
Fix feature popup for NL 304 stop signals (#376)
hiddewie May 1, 2025
e5e1d2e
Import platform relations (#374)
hiddewie May 1, 2025
7dec446
Handle `public_transport=stop_area` relations (#377)
hiddewie May 3, 2025
0e03c71
Order signal features on their definition order (#369)
hiddewie May 3, 2025
e1023c9
Base order of signal features (#379)
hiddewie May 3, 2025
b693da6
Ordering of PL signals (#381)
hiddewie May 4, 2025
947bc41
Ordering of DE signals (#380)
hiddewie May 4, 2025
98aa4f0
Fix duplicated signals if more than one type (#386)
hiddewie May 4, 2025
b906e5b
Add JOSM (and compatible) as possible editor (#378)
mmoll May 5, 2025
5a59856
Set news hash explicitly (#387)
hiddewie May 5, 2025
8fb0516
Hurl 6.1.1 (#389)
hiddewie May 5, 2025
3b0c92e
Run tests on ARM64 runners (#382)
hiddewie May 7, 2025
7b65114
AT signal order & improvements (#388)
hiddewie May 9, 2025
e620581
Allow for We1a, We1b and We1c to be rendered (#390)
Anasmasuris May 10, 2025
509699e
Fix missing icons in legend (#393)
hiddewie May 11, 2025
f23dbf8
CZ signalling (#391)
hiddewie May 11, 2025
1852b45
Maplibre GL JS 5.5 (#394)
hiddewie May 11, 2025
49fc2d1
Missing DE signals (#395)
hiddewie May 14, 2025
0a8f9a1
NEXTEO train protection (#398)
hiddewie May 15, 2025
b294add
Fix missing icons in preset (#399)
hiddewie May 15, 2025
b897129
Fix POIs with zoom levels > 14 not output to tiles (#403)
hiddewie May 24, 2025
f59c419
Preset: fix duplicate tags for vacancy detection (#404)
hiddewie May 24, 2025
73720f7
Output all signal tags (#400)
hiddewie May 25, 2025
acf8851
Update speed signals in PL (half speeds) (#406)
Anasmasuris May 25, 2025
190e1d2
Import station feature and state (#407)
hiddewie May 25, 2025
b13e973
Catenary masts & portals (#412)
hiddewie Jun 3, 2025
08e0d78
Catenary mast portal (#417)
hiddewie Jun 3, 2025
f3d0588
Add W1 to distant PL signals (#410)
Anasmasuris Jun 3, 2025
f3bb801
OpenHistoricalMap: use transport centroid points layer (#418)
hiddewie Jun 3, 2025
82bfde9
Store last view in local storage (#421)
hiddewie Jun 4, 2025
5ee036c
Handle `any`/`all` array tags for presets (#422)
hiddewie Jun 4, 2025
4159128
MapLibre GL JS 5.6 (#423)
hiddewie Jun 4, 2025
19c2dcd
BE signals (#424)
hiddewie Jun 5, 2025
3c5d845
Display station area including subway entrances (#425)
hiddewie Jun 7, 2025
3ad898e
Split signal tile generation (#426)
hiddewie Jun 7, 2025
b861833
Fix CI Berlin data cache (#427)
hiddewie Jun 7, 2025
285d1f1
Mobile UI elements (#429)
hiddewie Jun 10, 2025
2a8b451
Serve styles and tiles from `openrailwaymap.app` domain (#430)
hiddewie Jun 11, 2025
e3bc1fa
Station entrances (#432)
hiddewie Jun 14, 2025
136ed62
Replace reference to Americana style to Stadia Maps style (#433)
hiddewie Jun 14, 2025
a69f114
Import `tourism=museum` with `museum=railway` (#434)
hiddewie Jun 14, 2025
c7c882f
Power supplies to electrification layer (#435)
hiddewie Jun 14, 2025
90e81d7
Catenary masts with power transition (#437)
hiddewie Jun 14, 2025
e7fa1d7
Import vehicle types to specify station type (#438)
hiddewie Jun 17, 2025
dd2722d
Add redirect from `openrailwaymap.fly.dev` to `openrailwaymap.app` (#…
hiddewie Jun 28, 2025
c6e2bbb
News for May and June 2025 (#444)
hiddewie Jun 29, 2025
441ad57
News: show popup when clicking the about image (#445)
hiddewie Jun 29, 2025
3f998be
Operator layer (#442)
hiddewie Jun 29, 2025
b6d0caa
Operator: show both name and operator on line (#446)
hiddewie Jun 29, 2025
45963da
Display `image` in popup (#447)
hiddewie Jun 29, 2025
b7b9412
Fix API tests (#452)
hiddewie Jul 3, 2025
59f5ba9
Train protection: change *other* to *no train protection* (#451)
hiddewie Jul 4, 2025
d8532fe
Ordering of north american train protection (#450)
hiddewie Jul 4, 2025
f6c46e2
Update domains to openrailwaymap.app (#453)
hiddewie Jul 4, 2025
693073f
Support SSL in proxy (#455)
hiddewie Jul 5, 2025
44f8f7b
Replace replication timestamp with API (#456)
hiddewie Jul 5, 2025
8d149f0
Support non-absolute URLs in style (#457)
hiddewie Jul 5, 2025
97875fe
Deploy OpenRailwayMap on a server, remove Fly.io deployment (#454)
hiddewie Jul 5, 2025
36e1ccc
Ensure API is lightweight container without Postgres (#459)
hiddewie Jul 6, 2025
1c19391
Simplify API database views (#461)
hiddewie Jul 6, 2025
944654a
Nightly update: simplify and build containers (#462)
hiddewie Jul 6, 2025
ce8f3a1
Simplify API proxying, improve API caching (#464)
hiddewie Jul 9, 2025
cbf86cb
Railway ferries (#465)
hiddewie Jul 10, 2025
3e1eb83
Add watching to API container (#468)
hiddewie Jul 10, 2025
6eee74d
Render Isolated track sections (#467)
hiddewie Jul 10, 2025
7c9a8dc
Support station areas (#469)
hiddewie Jul 10, 2025
8ad474a
Show owner and primary operator (#470)
hiddewie Jul 11, 2025
fa331c2
Operator layer: show stations (#472)
hiddewie Jul 12, 2025
eaa3e5c
Show compass color (#474)
hiddewie Jul 13, 2025
2eef122
Show Wikidata images in popup (#475)
hiddewie Jul 16, 2025
c550294
Station areas with platforms as ways (#478)
hiddewie Jul 16, 2025
d0c8145
DE Rostock trams (#479)
hiddewie Jul 16, 2025
6df82f6
ASES train protection (#480)
hiddewie Jul 16, 2025
b9a052a
Railway position improvements (#481)
hiddewie Jul 19, 2025
8dff63b
Fix map not showing colored rotation icon on page reload (#482)
hiddewie Jul 19, 2025
3519e20
Add missing railway features (#483)
hiddewie Jul 19, 2025
feeb14c
Fix missing railway feature for rotary car dumper (#485)
hiddewie Jul 19, 2025
1a1384b
Fix milestones wrong property during import (#486)
hiddewie Jul 19, 2025
8e6d5d3
Allow reloading materialized facilities views (#490)
hiddewie Jul 20, 2025
2b2aa26
Show operator on signal box (#488)
hiddewie Jul 20, 2025
6498b16
Change defaults of background map (#492)
hiddewie Jul 20, 2025
cbbfa64
Optimize page loading time (#491)
hiddewie Jul 20, 2025
a616696
Ensure railway crossing has an icon (#493)
hiddewie Jul 22, 2025
552e3b6
DK signals (#405)
hiddewie Jul 24, 2025
71fc72b
Ensure milestone zeros work correctly (#497)
hiddewie Jul 24, 2025
37fff90
Give NEXTEO priority over KVB train protection (#505)
hiddewie Jul 30, 2025
78da01f
IT signals (#502)
hiddewie Jul 30, 2025
3c0c1c3
PL 6-cell semaphores (#501)
Anasmasuris Jul 31, 2025
98dfa36
Render switches without references (#507)
hiddewie Jul 31, 2025
28cd7d2
Fix integration test Berlin station response order (#509)
hiddewie Aug 2, 2025
1f39ac8
correct CM4 track class (#508)
mmoll Aug 2, 2025
b5013e4
Signal cone larger to avoid covering it with ref (#506)
hiddewie Aug 2, 2025
332a790
Move border crossing and owner change to operator layer (#510)
hiddewie Aug 2, 2025
ed1ff5b
Clean up icons filtering code on zoom level (#511)
hiddewie Aug 3, 2025
af9514a
Clean up source URLs (#512)
hiddewie Aug 3, 2025
4ac9bf4
Document downloading, filtering and publishing the planet data (#516)
hiddewie Aug 3, 2025
8ef40f6
IT signals (part 2) (#517)
hiddewie Aug 3, 2025
dcff4c1
render `railway=hirail_access` (#530)
k-yle Sep 14, 2025
c8f3c89
Finland specific track classes added (#531)
pirttju Sep 14, 2025
808f82d
Add Finnish train protection system JKV (#532)
pirttju Sep 14, 2025
f2aba9f
Maplibre GL JS 5.7 (#537)
hiddewie Sep 14, 2025
ad65e01
Render signal boxes ref on high zooms if no name (#538)
hiddewie Sep 14, 2025
e7b7959
Update signals_railway_signals.yaml (#536)
MatCr90 Sep 14, 2025
86e5431
Add a few more German signals (#534)
besentv Sep 14, 2025
dd57682
Implement GB whistle boards (#523)
Liaely Sep 15, 2025
cd3a8f4
fallback to `oneway=*` if `railway:preferred_direction=*` does not ex…
k-yle Sep 15, 2025
3fbaf32
IT crossing PL sign (#539)
hiddewie Sep 17, 2025
bb5dea2
Remove custom display of DE Blockkennzeichen (#540)
hiddewie Sep 17, 2025
9eef19e
Use `railway:signal:regime` tag for BE signal regime (#541)
hiddewie Sep 17, 2025
495174f
add TWC to train_protection.yaml (#529)
k-yle Sep 18, 2025
387c853
add ATMS to train_protection.yaml (#546)
k-yle Sep 18, 2025
4d59fda
Planet deployment script, plain copy (#552)
hiddewie Sep 20, 2025
405344a
Upgrade Cypress to version 15 (#551)
hiddewie Sep 20, 2025
c5248f1
Show name and reference for station/subway entrances (#553)
hiddewie Sep 20, 2025
6e9729d
Maplibre GL JS 5.7.3 (#558)
hiddewie Sep 20, 2025
31f48ae
Render Wikipedia titles and signal features with flag emoji (#556)
hiddewie Sep 21, 2025
5c1cedc
Fix errors for station/subway entrances in legend (#559)
hiddewie Sep 21, 2025
3e1f14e
Deactivated signals per feature (#560)
hiddewie Sep 23, 2025
25f81b1
Add German signals Pl 3, Pl 4 (#564)
entbert Sep 23, 2025
13b53e3
Platforms (#557)
hiddewie Sep 23, 2025
80b9230
Ignore signal feature type for popup (#566)
hiddewie Sep 23, 2025
f9832d4
add NZ signals (part 1) (#565)
k-yle Sep 24, 2025
a0b0574
Merge branch 'master' of github.com:OpenRailwayMap/OpenRailwayMap-Car…
hiddewie Sep 24, 2025
26adcf9
automatically generate taginfo.json file from the yaml files (#563)
k-yle Sep 25, 2025
06b335d
Use Maplibre `global-state` for theme (#570)
hiddewie Sep 26, 2025
ec0b3eb
Add further signals from Germany (#573)
entbert Sep 27, 2025
1ca9919
Fix relation links opening as ways (#576)
hiddewie Sep 27, 2025
95388ee
Fix platforms with multiple references (#577)
hiddewie Sep 27, 2025
a5ff81e
Ensure non-loading images do not take space in popup (#578)
hiddewie Sep 27, 2025
c492efb
Fix IT speed, speed distant, main and combined signal icons (#582)
hiddewie Sep 28, 2025
235837e
Podman support (#574)
hiddewie Sep 29, 2025
e371013
Stacked signal features: offset icons with signal height (#580)
hiddewie Sep 29, 2025
e68d06b
Specify tagging for NL shunting / train protection signal addons (#583)
hiddewie Sep 29, 2025
ddb3c65
Detect unknown signals (#579)
hiddewie Sep 29, 2025
3934abb
Fix DE-AVG crossing signals (#581)
entbert Sep 29, 2025
95e7dc4
Revert usage of port 8443 (#584)
hiddewie Sep 30, 2025
10ddb3a
Signal position in popup (#588)
hiddewie Oct 2, 2025
0563f27
Do not import bus/taxy/ferry-only platforms (#589)
hiddewie Oct 3, 2025
741066c
Fix EN Wikipedia emoji not displaying (#591)
hiddewie Oct 3, 2025
fe49bbe
Station bubbles for stations mapped as ways (#592)
hiddewie Oct 3, 2025
e735a90
Stop area groups (#593)
hiddewie Oct 4, 2025
321213b
Render buffer stop and derail features in train protection layer (#550)
hiddewie Oct 6, 2025
1edf3ad
Improve signal halo in dark mode (#604)
hiddewie Oct 6, 2025
8d9c3b7
add Australian metro signals (#601)
k-yle Oct 6, 2025
d13fdb6
PL tram signals (AT, BT and DT) (#596)
Anasmasuris Oct 6, 2025
967ea2a
Fix API container build (Python alpine base image) (#607)
hiddewie Oct 9, 2025
c098888
Include platforms in station bubbles (#606)
hiddewie Oct 9, 2025
daadbd9
Add German tram switch signals (#595)
entbert Oct 10, 2025
1e8f35a
Hillshading (#608)
hiddewie Oct 11, 2025
7affcb0
News June until October 2025 (#610)
hiddewie Oct 15, 2025
62a222f
BE Carwash speed signals (#616)
hiddewie Oct 15, 2025
65c9bfd
Correction of IT distant stop signs (#613)
MatCr90 Oct 17, 2025
3e2a489
add Australian light-rail signals (#609)
k-yle Oct 17, 2025
1927996
Missing deactivated layer for zooms 13-16 (#618)
hiddewie Oct 17, 2025
d56b1bb
Exact line positions (#620)
hiddewie Oct 18, 2025
f912fab
Render disused and preserved railways in all styles (#619)
hiddewie Oct 18, 2025
00348e1
Link tram stops to stop areas for station bubbles (#622)
hiddewie Oct 18, 2025
a897b66
Station names for low zooms (#623)
hiddewie Oct 21, 2025
9ed3464
Prioritize dwarf Ne3 signs over normal ones. (#628)
besentv Oct 21, 2025
36a508f
Add support for German Sk signals (#627)
besentv Oct 21, 2025
f7c4b1f
Merge branch 'master' of github.com:OpenRailwayMap/OpenRailwayMap-Car…
hiddewie Oct 21, 2025
13ecd03
Merge branch 'master' of github.com:hiddewie/OpenRailwayMap-vector
hiddewie Oct 21, 2025
2a33978
Postgres 18, PostGIS 3.6 (#590)
hiddewie Oct 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**
!features
!import/sql
!import/docker-startup.sh
!import/tags.lua.js
!import/osmium-tags-filter
!import/openrailwaymap.lua
!import/test
!martin
!proxy
!symbols
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
root = true

[*.{mss,sql,yml}]
[*]
charset = utf-8
indent_size = 2
indent_style = space
Expand Down
151 changes: 151 additions & 0 deletions .github/workflows/nightly-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
name: Nightly update

on:
workflow_dispatch: ~
schedule:
# Run daily at 23:47 or 00:47 Europe/Amsterdam
- cron: '47 22 * * *'

jobs:
update-data:
name: Update data
runs-on: ubuntu-24.04

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull OSM data
run: |
docker compose pull data
docker compose create data
docker compose cp data:/data/data.osm.pbf data/filtered/data.osm.pbf

- name: Build import image
run: |
docker compose build import

- name: Update OSM data
run: |
docker compose run --no-deps import update

- name: Build new OSM data image
run: |
docker compose build data

- name: Push OSM data
run: |
docker compose push data

- name: Build database
run: |
docker compose build db

- name: Start database
run: |
docker compose up --wait db
docker inspect "$(docker compose ps --all --format json | jq -r 'select(.Service == "db") | .ID')"
# No idea why this is needed, DB should be healthy by now
sleep 10
docker inspect "$(docker compose ps --all --format json | jq -r 'select(.Service == "db") | .ID')"

- name: Import data
env:
OSM2PGSQL_NUMPROC: '8'
run: |
docker compose run import import

- name: Push data
run: |
docker compose stop db
DB_CONTAINER_ID="$(docker compose ps --all --format json | jq -r 'select(.Service == "db") | .ID')"
docker commit "$DB_CONTAINER_ID" ghcr.io/${{ github.repository_owner }}/openrailwaymap-import-db:latest
docker compose push db

build-martin:
name: Build tiles container
runs-on: ubuntu-24.04

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image
run: |
docker compose build martin

- name: Push image
run: |
docker compose push martin

build-proxy:
name: Build proxy container
runs-on: ubuntu-24.04

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image
run: |
docker compose build --build-arg "PRESET_VERSION=$(/bin/date -u "+1.%Y%m%d-%Y-%m-%d")" martin-proxy

- name: Push image
run: |
docker compose push martin-proxy

build-api:
name: Build API container
runs-on: ubuntu-24.04

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image
run: |
docker compose build api

- name: Push image
run: |
docker compose push api
Loading