Skip to content

Commit

Permalink
chore: build images with cache
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed Sep 14, 2024
1 parent 94cf91e commit 792823b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,21 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Go Build Cache for Docker
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: go-build-cache
path: |
go-build-cache
key: ${{ runner.os }}-go-build-cache
restore-keys: |
${{ runner.os }}-go-build-cache
- name: inject go-build-cache into docker
uses: reproducible-containers/[email protected].0
uses: reproducible-containers/[email protected].2
with:
cache-source: go-build-cache
cache-map: |
{
"go-build-cache": "/root/.cache/go-build"
}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down Expand Up @@ -83,7 +87,7 @@ jobs:

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/${{ matrix.chain }}
tags: |
Expand Down

0 comments on commit 792823b

Please sign in to comment.