Skip to content

Commit

Permalink
try to use cache for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Jan 20, 2024
1 parent b409bb5 commit 0454bc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build and push devcontainer
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand All @@ -31,10 +31,12 @@ jobs:
tags: ghcr.io/${{ github.repository }}:dev

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ghcr.io/${{ github.repository }}:latest

- name: Log in to Azure
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/okteto.yml

This file was deleted.

0 comments on commit 0454bc1

Please sign in to comment.