.rancher-pipeline.yml 825 B

1234567891011121314151617181920212223242526272829303132
  1. stages:
  2. - name: compile
  3. steps:
  4. - runScriptConfig:
  5. image: docker.qianqiusoft.com/library/golang-builder:1.13-alpine
  6. shellScript: |-
  7. go build -mod=vendor
  8. echo "begin tar"
  9. tar zcf light-dauth.tar.gz light-dauth
  10. - name: build-image
  11. steps:
  12. - publishImageConfig:
  13. dockerfilePath: ./Dockerfile
  14. buildContext: .
  15. tag: docker.qianqiusoft.com/qianqiusoft/light-dauth:${CICD_GIT_TAG}
  16. pushRemote: true
  17. registry: docker.qianqiusoft.com
  18. when:
  19. event:
  20. include:
  21. - tag
  22. timeout: 60
  23. notification:
  24. recipients:
  25. - recipient: HuangRuiFeng
  26. notifier: c-k65bx:n-qxzmv
  27. - recipient: ZhangJinQiang
  28. notifier: c-k65bx:n-qxzmv
  29. condition:
  30. - Success
  31. - Changed
  32. - Failed