Compare commits

...

3 Commits

Author SHA1 Message Date
nobohan
7d636bc777 drone: add step for importing
Some checks failed
continuous-integration/drone/tag Build is failing
2023-07-03 15:53:12 +02:00
nobohan
0a9fb88da2 drone: remove destination for downloading pbf
All checks were successful
continuous-integration/drone/tag Build is passing
2023-07-03 15:20:08 +02:00
nobohan
c67dfbeb56 init drone: download pbf with plugin
Some checks failed
continuous-integration/drone/tag Build is failing
2023-07-03 15:12:50 +02:00
2 changed files with 41 additions and 1 deletions

40
.drone.yml Normal file
View File

@@ -0,0 +1,40 @@
---
kind: pipeline
type: docker
name: default
trigger:
event:
- tag
clone:
disable: true
steps:
- name: clone
image: plugins/git
settings:
recursive: true
- name: download_pbf
image: plugins/download
settings:
source: https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf
#destination: /drone/src/
- name: import_pbf
image: plugins/docker
settings:
context: .
dockerfile: Dockerfile
pull_image: true
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: h3m6q87t.gra7.container-registry.ovh.net
repo: h3m6q87t.gra7.container-registry.ovh.net/osm_tile_server/map
tag:
- ${DRONE_TAG:=latest}
commands:
- sh run.sh import

View File

@@ -169,6 +169,6 @@ COPY --from=compiler-stylesheet /root/openstreetmap-carto /home/renderer/src/ope
# Start running # Start running
COPY run.sh / COPY run.sh /
ENTRYPOINT ["/run.sh"] #ENTRYPOINT ["/run.sh"]
CMD [] CMD []
EXPOSE 80 5432 EXPOSE 80 5432