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
0 commit comments