fix permissions when running in CI

This commit is contained in:
ILoveYaToo 2020-05-01 23:39:50 -04:00
parent a3736a676b
commit 72bd6639bc
3 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,7 @@ test-docker-ubuntu:
stage: tests stage: tests
script: script:
- cd ubuntu - cd ubuntu
- touch config/postal.yaml
- docker load -i postal-ubuntu-container.tar - docker load -i postal-ubuntu-container.tar
- docker-compose up -d - docker-compose up -d
- for i in {1..20}; do [ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ] && break || sleep 15; done - for i in {1..20}; do [ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ] && break || sleep 15; done
@ -44,6 +45,7 @@ test-docker-alpine:
stage: tests stage: tests
script: script:
- cd alpine - cd alpine
- touch config/postal.yaml
- docker load -i postal-alpine-container.tar - docker load -i postal-alpine-container.tar
- docker-compose up -d - docker-compose up -d
- for i in {1..20}; do [ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ] && break || sleep 15; done - for i in {1..20}; do [ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ] && break || sleep 15; done

View File

@ -10,7 +10,7 @@ services:
- "mysql" - "mysql"
- "rabbitmq" - "rabbitmq"
volumes: volumes:
- ./conf/postal.yml:/opt/postal/config/postal.yml - ./config/postal.yml:/opt/postal/config/postal.yml
- static_assets:/opt/postal/public - static_assets:/opt/postal/public
- postal_assets:/opt/postal/public/assets - postal_assets:/opt/postal/public/assets
- ./src/templates/:/templates - ./src/templates/:/templates

View File

@ -10,7 +10,7 @@ services:
- "mysql" - "mysql"
- "rabbitmq" - "rabbitmq"
volumes: volumes:
- ./conf/postal.yml:/opt/postal/config/postal.yml - ./config/postal.yml:/opt/postal/config/postal.yml
- static_assets:/opt/postal/public - static_assets:/opt/postal/public
- postal_assets:/opt/postal/public/assets - postal_assets:/opt/postal/public/assets
- ./src/templates/:/templates - ./src/templates/:/templates