deploy: docker compose file

This commit is contained in:
Thomas Hobson 2021-02-21 13:15:27 +13:00
parent 7b2305f30c
commit f957019710
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data/

View File

@ -15,6 +15,11 @@ services:
piston_fs_repo: #Temporary solution until CI works
build: repo
command: >
bash -c '/repo/make.sh &&
curl http://piston_api:6969/repos -XPOST -d "slug=local&url=file:///repo/index.yaml";
echo -e "\nAn error here is fine, it just means its already added it. Perhaps you restarted this container"
'
volumes:
- ./repo:/repo
- ./packages:/packages