Skip to content

Commit

Permalink
"Enable caching in Docker build steps in Github Actions
Browse files Browse the repository at this point in the history
The change adds 'cache-from' and 'cache-to' parameters to the Docker build steps in the Github Actions pipeline.
This is done to speed up the building process by taking advantage of Docker layer caching in the Github Actions environment."
  • Loading branch information
jan-br committed Sep 22, 2023
1 parent cfb5d28 commit 3b80c30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
image-name: pulumi-operator-kubernetes-job
dockerfile: pulumi-operator-kubernetes-job/Dockerfile
extract-git-tag: true
cache-from: type=gha
cache-to: type=gha,mode=max
publish-pulumi-operator-kubernetes:
runs-on: ubuntu-latest
steps:
Expand All @@ -29,4 +31,6 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: pulumi-operator-kubernetes
dockerfile: pulumi-operator-kubernetes/Dockerfile
extract-git-tag: true
extract-git-tag: true
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 3b80c30

Please sign in to comment.