docker-hub.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (c) 2019 Of Him Code Technology Studio
  3. # Jpom is licensed under Mulan PSL v2.
  4. # You can use this software according to the terms and conditions of the Mulan PSL v2.
  5. # You may obtain a copy of Mulan PSL v2 at:
  6. # http://license.coscl.org.cn/MulanPSL2
  7. # THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  8. # See the Mulan PSL v2 for more details.
  9. #
  10. version: '1.0'
  11. name: pipeline-20220528
  12. displayName: docker-hub
  13. triggers:
  14. trigger: manual
  15. push:
  16. branches:
  17. precise:
  18. - dev
  19. tags:
  20. prefix:
  21. - v
  22. stages:
  23. - name: stage-1b917201
  24. displayName: 容器发布
  25. strategy: naturally
  26. trigger: auto
  27. executor: []
  28. steps:
  29. - step: execute@docker
  30. name: execute_by_docker
  31. displayName: 基于镜像的脚本执行
  32. image: hub.docker.com/bash:latest
  33. command:
  34. - echo 'success!'
  35. - '# 服务端'
  36. - docker buildx build --platform linux/amd64,linux/arm64 -t jpomdocker/jpom:2.8.22 -f ./modules/server/DockerfileRelease --push .
  37. - '#'
  38. - docker buildx build --platform linux/amd64,linux/arm64 -t jpomdocker/jpom:latest -f ./modules/server/DockerfileRelease --push .
  39. strategy:
  40. retry: '0'
  41. strategy:
  42. blocking: true
  43. permissions:
  44. - role: admin
  45. members: []