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.

40 lines
676 B

3 years ago
  1. name: lucifer3
  2. kind: pipeline
  3. type: docker
  4. steps:
  5. - name: go-build
  6. image: golang:1.17
  7. commands:
  8. - go test -v ./...
  9. when:
  10. event:
  11. exclude:
  12. - tag
  13. - name: go-test
  14. image: golang:1.17
  15. commands:
  16. - go test -v ./...
  17. when:
  18. event:
  19. exclude:
  20. - tag
  21. - name: docker-backend-tag
  22. image: plugins/docker
  23. settings:
  24. auto_tag: true
  25. username:
  26. from_secret: docker_username
  27. password:
  28. from_secret: docker_password
  29. repo: r.vmaple.dev/lucifer/backend
  30. registry: r.vmaple.dev
  31. dockerfile: docker/backend/Dockerfile
  32. when:
  33. event:
  34. - tag