Contains the Concourse pipeline definition for building a line-server container
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.

47 lines
1.1 KiB

  1. ---
  2. resources:
  3. - name: git-resource
  4. type: git
  5. icon: git
  6. source:
  7. uri: ssh://git@git.nulloctet.com:8437/Mirror/github-andreimarcu-linx-server.git
  8. private_key: |
  9. ((pull_key))
  10. branch: master
  11. tag_filter: v*
  12. - name: git-resource-image
  13. type: docker-image
  14. icon: docker
  15. source:
  16. repository: ((nexus_docker_write.host))/sothr/linx
  17. username: ((nexus_docker_write.username))
  18. password: ((nexus_docker_write.password))
  19. jobs:
  20. - name: build-image
  21. plan:
  22. - get: git-resource
  23. trigger: true
  24. - task: generate-tags
  25. config:
  26. platform: linux
  27. image_resource:
  28. type: registry-image
  29. source: { repository: alpine/git }
  30. inputs:
  31. - name: git-resource
  32. outputs:
  33. - name: image-tags
  34. run:
  35. path: /bin/sh
  36. args:
  37. - -c
  38. - |
  39. cd git-resource
  40. git describe --tags --abbrev=0 > ../image-tags/tag
  41. cat ../image-tags/tag
  42. - put: git-resource-image
  43. params:
  44. build: git-resource
  45. tag_file: image-tags/tag
  46. tag_as_latest: true