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.

49 lines
1.3 KiB

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