buildme.yml 693 B

123456789101112131415161718192021222324252627282930313233343536
  1. project: buildme
  2. default: build
  3. services: # Similar to composer
  4. mongodb:
  5. image: "mongo"
  6. tasks:
  7. build-multistage:
  8. dockerfile: docker/Dockerfile.multistage
  9. command:
  10. - GET /builder .
  11. build:
  12. dockerfile: docker/Dockerfile.builder
  13. command:
  14. - RUN make dist
  15. - RUN sh -c "echo test > t.txt"
  16. - GET /buildme/t.txt TEST
  17. - GET /buildme/dist.tar.gz TEST
  18. test:
  19. dockerfile: docker/Dockerfile.test
  20. services: [mongodb]
  21. command:
  22. - RUN sh -c "ping -c 2 8.8.8.8"
  23. - RUN sh -c "ping -c 2 $DBHOST"
  24. - RUN sh -c "echo $DBHOST"
  25. env:
  26. - DBHOST=mongodb
  27. hello:
  28. image: alpine
  29. command:
  30. - RUN echo "hello"