Skip to content

Commit

Permalink
chore: cache builds
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed Sep 14, 2024
1 parent 3142d7f commit 1245093
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- "master"
tags:
- "v*"

jobs:
docker:
Expand All @@ -24,10 +22,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5

# TODO: first check if docker image not already exist
- uses: actions/setup-go@v3
with:
cache: true
cache-dependency-path: "**/build.yml"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -37,7 +35,7 @@ jobs:
with:
path: |
go-build-cache
key: ${{ runner.os }}-go-build-cache
key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/build.yaml') }}
restore-keys: |
${{ runner.os }}-go-build-cache
Expand Down

0 comments on commit 1245093

Please sign in to comment.