From f7ada08c6485c4812936ed7852baabe77cfc2c16 Mon Sep 17 00:00:00 2001 From: zyphlar Date: Tue, 30 Dec 2025 16:15:27 +0100 Subject: [PATCH] update pbf Either move to o5m for subways or remove from here Signed-off-by: zyphlar --- .forgejo/workflows/process_subways.yml | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.forgejo/workflows/process_subways.yml b/.forgejo/workflows/process_subways.yml index 17466581f..239073773 100644 --- a/.forgejo/workflows/process_subways.yml +++ b/.forgejo/workflows/process_subways.yml @@ -35,6 +35,47 @@ jobs: cd ~ git clone --depth 1 --single-branch https://codeberg.org/comaps/subways.git + update-planet-pbf: + name: Update PBF Planet + runs-on: mapfilemaker + container: + image: codeberg.org/comaps/maps_generator:f6d53d54f794 + volumes: + - /mnt/4tbexternal/:/mnt/4tbexternal/ + - /mnt/4tbexternal/osm-planet:/home/planet + concurrency: + group: ${{ github.workflow }}-process-subways-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + steps: + - name: Download Planet File if Absent + shell: bash + # TODO: replace wget2 with curl -Z + run: | + if [ ! -d /home/planet/planet/ ]; then + mkdir -p /home/planet/planet/ + fi + if [ ! -f /home/planet/planet/planet-latest.osm.pbf ]; then + cd /home/planet/planet/ + wget2 --verbose --progress=bar --continue https://ftpmirror.your.org/pub/openstreetmap/pbf/planet-latest.osm.pbf + else + echo "planet-latest.osm.pbf was found, raw download not required." + fi + - name: Update PBF Planet + shell: bash + run: | + cd /home/planet/planet/ + rm -f planet-latest-new.osm.pbf + pyosmium-up-to-date planet-latest.osm.pbf -o planet-latest-new.osm.pbf -v --size 16384 + mv planet-latest-new.osm.pbf planet-latest.osm.pbf + - name: Notify Zulip + run: | + curl -X POST https://comaps.zulipchat.com/api/v1/messages \ + -u $ZULIP_BOT_EMAIL:$ZULIP_API_KEY \ + --data-urlencode type=stream \ + --data-urlencode 'to="DevOps"' \ + --data-urlencode topic=codeberg-bot \ + --data-urlencode 'content=PBF planet update is done!' + update-planet-o5m: name: Update O5M Planet runs-on: mapfilemaker