You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. ---
  2. resources:
  3. - name: git-resource
  4. type: git
  5. icon: git
  6. source:
  7. uri: https://git.nulloctet.com/docker/botamusique.git
  8. tag_filter: "*[0-9].*[0-9].*[0-9]"
  9. - name: image-nexus
  10. type: docker-image
  11. icon: docker
  12. source:
  13. repository: ((nexus_docker_write.host))/sothr/botamusiqe
  14. username: ((nexus_docker_write.username))
  15. password: ((nexus_docker_write.password))
  16. - name: image-dockerhub
  17. type: docker-image
  18. icon: docker
  19. source:
  20. repository: sothr/botamusique
  21. username: ((hub_docker_write.username))
  22. password: ((hub_docker_write.password))
  23. jobs:
  24. - name: build-image-nexus
  25. plan:
  26. - get: git-resource
  27. trigger: true
  28. - put: image-nexus
  29. params:
  30. build: git-resource
  31. tag_file: git-resource/.git/ref
  32. tag_as_latest: true
  33. get_params: {skip_download: true}
  34. - name: build-image-dockerhub
  35. plan:
  36. - get: git-resource
  37. trigger: true
  38. - put: image-dockerhub
  39. params:
  40. build: git-resource
  41. tag_file: git-resource/.git/ref
  42. tag_as_latest: true
  43. get_params: {skip_download: true}