feat: make the probe timings configurable (#5712) #1530
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish docs site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "docs/**" | |
| workflow_dispatch: | |
| # no content, allows manual triggering | |
| schedule: | |
| # 5:35 pm every Sunday (UTC) | |
| # to ensure the site is rebuilt weekly to publish scheduled blog posts | |
| - cron: "35 17 * * 0" | |
| permissions: {} | |
| jobs: | |
| deploy-site: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: read | |
| contents: write | |
| # Only run this scheduled job on the main repo, it can't work elsewhere | |
| if: ${{ github.repository == 'Azure/azure-service-operator' }} | |
| steps: | |
| - name: Create token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # pinned to v3.2.0 | |
| id: app-token | |
| with: | |
| # required | |
| app-id: ${{ secrets.AUTOMATION_ID }} | |
| private-key: ${{ secrets.AUTOMATION_KEY }} | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # pinned to 7.0.1 | |
| with: | |
| fetch-depth: 0 # required to access tags | |
| submodules: "true" | |
| - name: Log in to GitHub Docker Registry | |
| uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # pinned to v4.6.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build devcontainer image | |
| run: | | |
| docker build --cache-from ghcr.io/azure/azure-service-operator/aso-devcontainer:latest --tag devcontainer:latest -f .devcontainer/Dockerfile . | |
| env: | |
| DOCKER_BUILDKIT: 1 | |
| - name: Run devcontainer image | |
| id: devcontainer | |
| run: | | |
| container_id=$(docker create -w /workspace -v $GITHUB_WORKSPACE:/workspace -v /var/run/docker.sock:/var/run/docker.sock devcontainer:latest) | |
| docker start "$container_id" | |
| echo "container_id=$container_id" >> $GITHUB_ENV | |
| - name: Build & validate docs site | |
| run: | | |
| container_id=${{ env.container_id }} | |
| docker exec "$container_id" task build-docs-site | |
| - name: Publish to gh-pages branch | |
| uses: JamesIves/github-pages-deploy-action@fa24774553152dd7873cd16ebd8d959b010c5445 # pinned to v4.9.0 | |
| with: | |
| branch: gh-pages | |
| token: ${{ steps.app-token.outputs.token }} | |
| folder: docs/hugo/public |