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.

44 lines
1.2 KiB

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