2
0

image_build_web.yml 885 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Build Web Image
  2. on:
  3. push:
  4. tags:
  5. - 'r**'
  6. jobs:
  7. build_web:
  8. name: Build Web
  9. runs-on: ubuntu-latest
  10. steps:
  11. -
  12. name: Checkout
  13. uses: actions/checkout@v3
  14. -
  15. name: Set up QEMU
  16. uses: docker/setup-qemu-action@v2
  17. -
  18. name: Set up Docker Buildx
  19. uses: docker/setup-buildx-action@v2
  20. -
  21. name: Login to Docker Hub
  22. uses: docker/login-action@v2
  23. with:
  24. username: ${{ secrets.DOCKERHUB_USERNAME }}
  25. password: ${{ secrets.DOCKERHUB_TOKEN }}
  26. -
  27. name: Build and push
  28. uses: docker/build-push-action@v4
  29. with:
  30. context: .
  31. file: docker_compose_deploy/loonflow-web/Dockerfile
  32. platforms: linux/amd64
  33. push: true
  34. tags: blackholll/loonflow-web:latest,blackholll/loonflow-web:${{ github.ref_name }}