Skip to content

Commit

Permalink
Update ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
matifali authored Jan 27, 2024
1 parent 970d88c commit a71d089
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit a71d089

Please sign in to comment.