feat(server): make fix loops resumable and analytics recomputable #75
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
| # Build and push Docker image to ghcr.io on every merge to main. | |
| # Keeps ghcr.io/evalops/diffscope:latest available for the DiffScope Review workflow. | |
| name: Publish image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: publish-image-main | |
| cancel-in-progress: false | |
| jobs: | |
| build-and-push: | |
| name: Build and push Docker image | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| id: build-and-push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| platforms: linux/amd64 | |
| push: true | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| tags: | | |
| ghcr.io/evalops/diffscope:latest | |
| ghcr.io/evalops/diffscope:sha-${{ github.sha }} |