mkdocs_utils.yml 781 B

12345678910111213141516171819202122232425262728293031
  1. name: build mkdocs image
  2. on: workflow_dispatch
  3. jobs:
  4. docker:
  5. runs-on: ubuntu-latest
  6. steps:
  7. -
  8. name: Checkout
  9. uses: actions/checkout@v2
  10. -
  11. name: Set up QEMU
  12. uses: docker/setup-qemu-action@v1
  13. -
  14. name: Set up Docker Buildx
  15. uses: docker/setup-buildx-action@v1
  16. -
  17. name: Login to DockerHub
  18. uses: docker/login-action@v1
  19. with:
  20. username: ${{ secrets.DOCKERHUB_USERNAME }}
  21. password: ${{ secrets.DOCKERHUB_TOKEN }}
  22. -
  23. name: Build and push
  24. uses: docker/build-push-action@v2
  25. with:
  26. context: doc/mkdocs
  27. file: doc/mkdocs/docker/Dockerfile
  28. push: true
  29. tags: ${{ secrets.DOCKERHUB_USERNAME }}/mkdocs:latest