Skip to content

Commit 272082e

Browse files
author
Karthik Natarajan
committed
Add docker build cache
1 parent 0a5b6a9 commit 272082e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/cloudness-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
- name: Checkout repository
2323
uses: actions/checkout@v4
2424

25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
2528
- name: Log in to the Docker Hub
2629
uses: docker/login-action@v3
2730
with:
@@ -58,6 +61,8 @@ jobs:
5861
push: true
5962
tags: ${{ steps.meta.outputs.tags }}
6063
labels: ${{ steps.meta.outputs.labels }}
64+
cache-from: type=gha
65+
cache-to: type=gha,mode=max
6166
# Pass build arguments for versioning
6267
# Extracts version from git tag e.g., v1.2.3 -> 1, 2, 3
6368
build-args: |
@@ -77,6 +82,9 @@ jobs:
7782
- name: Checkout repository
7883
uses: actions/checkout@v4
7984

85+
- name: Set up Docker Buildx
86+
uses: docker/setup-buildx-action@v3
87+
8088
- name: Log in to the Docker Hub
8189
uses: docker/login-action@v3
8290
with:
@@ -113,6 +121,8 @@ jobs:
113121
push: true
114122
tags: ${{ steps.meta.outputs.tags }}
115123
labels: ${{ steps.meta.outputs.labels }}
124+
cache-from: type=gha
125+
cache-to: type=gha,mode=max
116126
# Pass build arguments for versioning
117127
# Extracts version from git tag e.g., v1.2.3 -> 1, 2, 3
118128
build-args: |

0 commit comments

Comments
 (0)