image_build_base.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Build Base Image
  2. on:
  3. push:
  4. branches:
  5. - 'update_base_image**'
  6. jobs:
  7. build_base:
  8. name: Build Base
  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: Get current date
  28. id: date
  29. run: echo "::set-output name=today::$(date +'%Y-%m-%d')"
  30. -
  31. name: Build and push
  32. uses: docker/build-push-action@v4
  33. with:
  34. context: .
  35. file: docker_compose_deploy/loonflow-base/Dockerfile
  36. platforms: linux/amd64
  37. push: true
  38. tags: blackholll/loonflow-base:latest,blackholll/loonflow-base:${{ steps.date.outputs.today }}