fix: correct maintenance API paths — remove extra /schedules segment #53
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: Build Dev Server Image | |
| # Builds and pushes the dev-branch server image to GHCR on every push to dev. | |
| # Watchtower on local machines polls GHCR every 5 minutes and auto-restarts | |
| # the automaker-dev-server container when a new image is available. | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write # Required to push to GHCR | |
| jobs: | |
| build: | |
| name: Build & push dev server image | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout dev branch | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push dev server image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: docker/dev-server/Dockerfile | |
| target: server | |
| push: true | |
| tags: | | |
| ghcr.io/protolabsai/automaker-dev-server:latest | |
| ghcr.io/protolabsai/automaker-dev-server:${{ github.sha }} | |
| build-args: | | |
| GIT_COMMIT_SHA=${{ github.sha }} | |
| # Use GitHub Actions cache to speed up subsequent builds | |
| cache-from: type=gha,scope=dev-server | |
| cache-to: type=gha,mode=max,scope=dev-server |