build-tag.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: "Build Tag"
  2. on:
  3. push:
  4. tags:
  5. - '*'
  6. jobs:
  7. build-tag:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout
  11. uses: actions/checkout@v3
  12. - name: Set up QEMU
  13. id: qemu
  14. uses: docker/setup-qemu-action@v1
  15. with:
  16. image: tonistiigi/binfmt:latest
  17. platforms: arm64,arm
  18. - name: Setup Go
  19. uses: actions/setup-go@v2
  20. with:
  21. go-version: '^1.16.0'
  22. - name: Login to Docker Hub
  23. uses: docker/login-action@v1
  24. with:
  25. username: ${{ secrets.DOCKERHUB_USERNAME }}
  26. password: ${{ secrets.DOCKERHUB_KEY }}
  27. - name: grpc
  28. run: make grpc
  29. - name: goreleaser
  30. uses: goreleaser/goreleaser-action@v2
  31. with:
  32. distribution: goreleaser
  33. version: latest
  34. args: release --rm-dist --parallelism 1
  35. env:
  36. GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
  37. - name: Archive binaries
  38. uses: actions/upload-artifact@v2
  39. with:
  40. name: dist
  41. path: dist/OliveTin*.*
  42. - name: Archive integration tests
  43. uses: actions/upload-artifact@v2
  44. with:
  45. name: integration-tests
  46. path: integration-tests