Skip to content

Commit e1e7d89

Browse files
committed
Add caching and labels to release workflow
1 parent afbe906 commit e1e7d89

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/docker-release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
2929
-
3030
name: Set up Docker Buildx
3131
uses: docker/setup-buildx-action@v1
32+
-
33+
name: Cache Docker Layers
34+
uses: actions/cache@v2
35+
with:
36+
path: /tmp/.buildx-cache
37+
key: ${{ runner.os }}-buildx-${{ github.sha }}
38+
restore-keys: |
39+
${{ runner.os }}-buildx-
3240
-
3341
name: Login to GHCR
3442
uses: docker/login-action@v1
@@ -54,3 +62,9 @@ jobs:
5462
ghcr.io/${{ steps.extract_owner.outputs.owner }}/sui:${{ steps.extract_tag.outputs.tag }}
5563
docker.io/${{ secrets.DOCKER_USERNAME }}/sui:${{ steps.extract_tag.outputs.tag }}
5664
no-cache: false
65+
cache-from: type=local,src=/tmp/.buildx-cache
66+
cache-to: type=local,dest=/tmp/.buildx-cache
67+
labels: |
68+
dev.sui.image.title=${{ github.event.repository.name }}
69+
dev.sui.image.description=${{ github.event.repository.description }}
70+
dev.sui.image.url=${{ github.event.repository.html_url }}

0 commit comments

Comments
 (0)