23
23
- 5000:5000
24
24
steps :
25
25
- name : Checkout
26
- id : checkout
27
26
uses : actions/checkout@v2
27
+ - name : Unshallow
28
+ run : git fetch --prune --unshallow
28
29
- name : Set up QEMU
29
30
id : qemu
30
31
uses : docker/setup-qemu-action@v1
@@ -46,14 +47,15 @@ jobs:
46
47
echo "Status: ${{ steps.buildx.outputs.status }}"
47
48
echo "Flags: ${{ steps.buildx.outputs.flags }}"
48
49
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
57
59
- name : Build candidate image
58
60
id : build_candidate
59
61
uses : docker/build-push-action@v2
@@ -63,22 +65,22 @@ jobs:
63
65
platforms : ${{ env.PLATFORMS }}
64
66
push : true
65
67
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
68
70
- name : Inspect candidate image
69
71
run : |
70
72
docker buildx imagetools inspect localhost:5000/${{ github.repository_owner }}/golang-with-libgit2:latest
71
73
- name : Test candidate image
72
74
id : test_candidate
73
75
run : |
74
76
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
82
84
- name : Login to GHCR
83
85
if : github.event_name != 'pull_request'
84
86
uses : docker/login-action@v1
@@ -110,4 +112,4 @@ jobs:
110
112
push : true
111
113
tags : ${{ steps.meta.outputs.tags }}
112
114
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