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.

53 lines
1.3 KiB

  1. name: "docker: test building container images"
  2. on:
  3. pull_request:
  4. workflow_dispatch: []
  5. concurrency:
  6. group: ${{ github.head_ref }}/container_test
  7. cancel-in-progress: true
  8. jobs:
  9. build-test:
  10. runs-on: [ubuntu-latest]
  11. strategy:
  12. matrix:
  13. platform: [ linux ]
  14. arch: [ amd64, arm, arm64, 386 ]
  15. steps:
  16. -
  17. name: Checkout
  18. uses: actions/checkout@v2
  19. -
  20. name: Docker meta
  21. id: docker_meta
  22. uses: docker/metadata-action@v3
  23. with:
  24. images: |
  25. chrislusf/seaweedfs
  26. ghcr.io/chrislusf/seaweedfs
  27. tags: |
  28. type=raw,value=latest
  29. labels: |
  30. org.opencontainers.image.title=seaweedfs
  31. org.opencontainers.image.vendor=Chris Lu
  32. -
  33. name: Set up QEMU
  34. uses: docker/setup-qemu-action@v1
  35. -
  36. name: Set up Docker Buildx
  37. uses: docker/setup-buildx-action@v1
  38. with:
  39. buildkitd-flags: "--debug"
  40. -
  41. name: Build
  42. uses: docker/build-push-action@v2
  43. with:
  44. context: ./docker
  45. push: false
  46. file: ./docker/Dockerfile
  47. platforms: ${{ matrix.platform }}/${{ matrix.arch }}
  48. tags: ${{ steps.docker_meta.outputs.tags }}
  49. labels: ${{ steps.docker_meta.outputs.labels }}