diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index beb920d..38327d2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,8 +4,6 @@ on: push: branches: - "master" - tags: - - "v*" jobs: docker: @@ -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 @@ -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