diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0058d44..b298453 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,10 +52,6 @@ jobs: - name: Setup Docker buildx if: github.event_name != 'workflow_dispatch' && github.event_name != 'schedule' uses: docker/setup-buildx-action@v3 - with: - version: "lab:latest" - driver: cloud - endpoint: "matifali/dockerdl" - name: Build and push Docker image if: github.event_name != 'workflow_dispatch' && github.event_name != 'schedule' @@ -64,9 +60,12 @@ jobs: with: context: . file: Dockerfile + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry,push=true' }} + # use gha cache to speed up the build + cache-from: type=gha + cache-to: type=gha,mode=max - name: Setup Depot if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'