Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 5ba1732

Browse files
committed
Disable cache as it breaks CI
Signed-off-by: Stefan Prodan <[email protected]>
1 parent ac8bee1 commit 5ba1732

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed

.dockerignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
**/**
2-
!hack/
1+

.github/workflows/build.yaml

+21-19
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
- 5000:5000
2424
steps:
2525
- name: Checkout
26-
id: checkout
2726
uses: actions/checkout@v2
27+
- name: Unshallow
28+
run: git fetch --prune --unshallow
2829
- name: Set up QEMU
2930
id: qemu
3031
uses: docker/setup-qemu-action@v1
@@ -46,14 +47,15 @@ jobs:
4647
echo "Status: ${{ steps.buildx.outputs.status }}"
4748
echo "Flags: ${{ steps.buildx.outputs.flags }}"
4849
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
49-
- name: Cache Docker layers
50-
uses: actions/cache@v2
51-
id: cache
52-
with:
53-
path: /tmp/.buildx-cache
54-
key: ${{ runner.os }}-buildx-ghcache-${{ github.sha }}
55-
restore-keys: |
56-
${{ runner.os }}-buildx-ghcache-
50+
# - name: Cache Docker layers
51+
# uses: actions/cache@v2
52+
# id: cache
53+
# with:
54+
# path: /tmp/.buildx-cache
55+
# key: ${{ runner.os }}-buildx-ghcache-${{ github.sha }}
56+
# restore-keys: |
57+
# ${{ runner.os }}-buildx-ghcache-
58+
- run: cat ./hack/Makefile
5759
- name: Build candidate image
5860
id: build_candidate
5961
uses: docker/build-push-action@v2
@@ -63,22 +65,22 @@ jobs:
6365
platforms: ${{ env.PLATFORMS }}
6466
push: true
6567
tags: localhost:5000/${{ github.repository_owner }}/golang-with-libgit2:latest
66-
cache-from: type=local,src=/tmp/.buildx-cache
67-
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
68+
# cache-from: type=local,src=/tmp/.buildx-cache
69+
# cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
6870
- name: Inspect candidate image
6971
run: |
7072
docker buildx imagetools inspect localhost:5000/${{ github.repository_owner }}/golang-with-libgit2:latest
7173
- name: Test candidate image
7274
id: test_candidate
7375
run: |
7476
IMG=localhost:5000/${{ github.repository_owner }}/golang-with-libgit2 make test
75-
- # Temp fix
76-
# https://github.com/docker/build-push-action/issues/252
77-
# https://github.com/moby/buildkit/issues/1896
78-
name: Move cache
79-
run: |
80-
rm -rf /tmp/.buildx-cache
81-
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
77+
# - # Temp fix
78+
# # https://github.com/docker/build-push-action/issues/252
79+
# # https://github.com/moby/buildkit/issues/1896
80+
# name: Move cache
81+
# run: |
82+
# rm -rf /tmp/.buildx-cache
83+
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache
8284
- name: Login to GHCR
8385
if: github.event_name != 'pull_request'
8486
uses: docker/login-action@v1
@@ -110,4 +112,4 @@ jobs:
110112
push: true
111113
tags: ${{ steps.meta.outputs.tags }}
112114
labels: ${{ steps.meta.outputs.labels }}
113-
cache-from: type=local,src=/tmp/.buildx-cache
115+
#cache-from: type=local,src=/tmp/.buildx-cache

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM scratch
22

3-
COPY hack/Makefile Makefile
3+
COPY ./hack/Makefile Makefile

Dockerfile.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FROM gostable AS go-linux
1212
FROM go-${TARGETOS} AS build-base-bullseye
1313

1414
COPY --from=xx / /
15-
COPY hack/Makefile /libgit2/Makefile
15+
COPY ./hack/Makefile /libgit2/Makefile
1616

1717
RUN make -C /libgit2/ cmake
1818

0 commit comments

Comments
 (0)