docs-test.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Docs test build
  2. on:
  3. pull_request:
  4. branches: ["main"]
  5. permissions:
  6. contents: read
  7. actions: write
  8. jobs:
  9. build:
  10. runs-on: ubuntu-24.04
  11. steps:
  12. - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
  13. with:
  14. persist-credentials: false
  15. - name: Set up Docker Buildx
  16. uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
  17. - name: Docker meta
  18. id: meta
  19. uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
  20. with:
  21. images: ghcr.io/techarohq/anubis/docs
  22. tags: |
  23. type=sha,enable=true,priority=100,prefix=,suffix=,format=long
  24. main
  25. - name: Build and push
  26. id: build
  27. uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
  28. with:
  29. context: ./docs
  30. cache-to: type=gha
  31. cache-from: type=gha
  32. tags: ${{ steps.meta.outputs.tags }}
  33. labels: ${{ steps.meta.outputs.labels }}
  34. platforms: linux/amd64
  35. push: false