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.

115 lines
3.3 KiB

  1. name: Build Latest Containers
  2. on:
  3. push:
  4. branches:
  5. - gh-container-build
  6. workflow_dispatch: []
  7. jobs:
  8. build-latest:
  9. runs-on: [ubuntu-latest]
  10. steps:
  11. -
  12. name: Checkout
  13. uses: actions/checkout@v2
  14. -
  15. name: Docker meta
  16. id: docker_meta
  17. uses: crazy-max/ghaction-docker-meta@v2
  18. with:
  19. images: |
  20. chrislusf/seaweedfs
  21. ghcr.io/chrislusf/seaweedfs
  22. tags: |
  23. type=raw,value=latest
  24. labels: |
  25. org.opencontainers.image.title=seaweedfs
  26. org.opencontainers.image.description=SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, to store and serve billions of files fast!
  27. org.opencontainers.image.vendor=Chris Lu
  28. -
  29. name: Set up QEMU
  30. uses: docker/setup-qemu-action@v1
  31. -
  32. name: Set up Docker Buildx
  33. uses: docker/setup-buildx-action@v1
  34. with:
  35. buildkitd-flags: "--debug"
  36. -
  37. name: Login to Docker Hub
  38. if: false
  39. uses: docker/login-action@v1
  40. with:
  41. username: ${{ secrets.DOCKER_USERNAME }}
  42. password: ${{ secrets.DOCKER_PASSWORD }}
  43. -
  44. name: Login to GHCR
  45. if: false
  46. uses: docker/login-action@v1
  47. with:
  48. registry: ghcr.io
  49. username: ${{ secrets.GHCR_USERNAME }}
  50. password: ${{ secrets.GHCR_TOKEN }}
  51. -
  52. name: Build
  53. uses: docker/build-push-action@v2
  54. with:
  55. context: .
  56. push: false
  57. file: ./docker/Dockerfile
  58. platforms: linux/amd64
  59. tags: ${{ steps.docker_meta.outputs.tags }}
  60. labels: ${{ steps.docker_meta.outputs.labels }}
  61. build-dev:
  62. runs-on: [ubuntu-latest]
  63. steps:
  64. -
  65. name: Checkout
  66. uses: actions/checkout@v2
  67. -
  68. name: Docker meta
  69. id: docker_meta
  70. uses: crazy-max/ghaction-docker-meta@v2
  71. with:
  72. images: |
  73. chrislusf/seaweedfs
  74. ghcr.io/chrislusf/seaweedfs
  75. tags: |
  76. type=raw,value=dev
  77. labels: |
  78. org.opencontainers.image.title=seaweedfs
  79. org.opencontainers.image.description=SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, to store and serve billions of files fast!
  80. org.opencontainers.image.vendor=Chris Lu
  81. -
  82. name: Set up QEMU
  83. uses: docker/setup-qemu-action@v1
  84. -
  85. name: Set up Docker Buildx
  86. uses: docker/setup-buildx-action@v1
  87. with:
  88. buildkitd-flags: "--debug"
  89. -
  90. name: Login to Docker Hub
  91. if: false
  92. uses: docker/login-action@v1
  93. with:
  94. username: ${{ secrets.DOCKER_USERNAME }}
  95. password: ${{ secrets.DOCKER_PASSWORD }}
  96. -
  97. name: Login to GHCR
  98. if: false
  99. uses: docker/login-action@v1
  100. with:
  101. registry: ghcr.io
  102. username: ${{ secrets.GHCR_USERNAME }}
  103. password: ${{ secrets.GHCR_TOKEN }}
  104. -
  105. name: Build
  106. uses: docker/build-push-action@v2
  107. with:
  108. context: ./docker
  109. push: false
  110. file: ./docker/Dockerfile.go_build
  111. platforms: linux/amd64
  112. tags: ${{ steps.docker_meta.outputs.tags }}
  113. labels: ${{ steps.docker_meta.outputs.labels }}