Skip to content

Commit

Permalink
Revert "Enable ci on work branch"
Browse files Browse the repository at this point in the history
This reverts commit 7fe3741.
  • Loading branch information
jbruechert committed Jan 15, 2025
1 parent 9872d93 commit dbc3c4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
26 changes: 13 additions & 13 deletions .woodpecker/data-import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

when:
- event: push
branch: [main, work/jbb/motis2]
branch: [main, work/jbb/woodpecker]
path:
- 'feeds/*'
- 'src/*'
Expand All @@ -23,7 +23,7 @@ steps:
from_secret: github_issues_token
commands:
- git submodule update --init --checkout --remote
# - ./ci/fetch-feeds.py timer
- ./ci/fetch-feeds.py timer
import:
image: ghcr.io/public-transport/transitous/import:latest
pull: true
Expand All @@ -32,15 +32,15 @@ steps:
- rm out/data -rf
- ./src/generate-attribution.py
- ./src/generate-motis-config.py import
- cd out && motis import -c config.yml > motis-import.log && rm motis-import.log && cd ..
- cd out && motis import -c config.ini > motis-import.log && rm motis-import.log && cd ..
- src/generate-motis-config.py full
# push:
# image: ghcr.io/public-transport/transitous/import:latest
# environment:
# RSYNC_PRIVATE_KEY:
# from_secret: RSYNC_PRIVATE_KEY
# commands:
# - echo "$${RSYNC_PRIVATE_KEY}" > deploy_key
# - chmod 600 ./deploy_key
# - "rsync -avz --progress --delete -e 'ssh -i ./deploy_key -p 22 -o StrictHostKeyChecking=no' out/ [email protected]:"
# - rm deploy_key
push:
image: ghcr.io/public-transport/transitous/import:latest
environment:
RSYNC_PRIVATE_KEY:
from_secret: RSYNC_PRIVATE_KEY
commands:
- echo "$${RSYNC_PRIVATE_KEY}" > deploy_key
- chmod 600 ./deploy_key
- "rsync -avz --progress --delete -e 'ssh -i ./deploy_key -p 22 -o StrictHostKeyChecking=no' out/ [email protected]:"
- rm deploy_key
1 change: 0 additions & 1 deletion motis/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ server:
port: 8080
web_folder: ""

# overwritten by generate-motis-config
street_routing: true
osr_footpath: true
elevators: false
Expand Down
7 changes: 0 additions & 7 deletions src/generate-motis-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
before="This file is automatically generated by ./src/generate-motis-config.py from motis/config.yml",
)

if flavour == "import":
config["street_routing"] = False
config["osr_footpath"] = False
config["geocoding"] = False
config.pop("osm")
config.pop("tiles")

config["timetable"].yaml_set_comment_before_after_key(
"datasets", before="Modified by generate-motis-config.py"
)
Expand Down

0 comments on commit dbc3c4c

Please sign in to comment.