Skip to content

Commit 6bc439e

Browse files
committed
ci: remove buildx features in github action
Signed-off-by: STRRL <[email protected]>
1 parent 3c2f55b commit 6bc439e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/upload_image.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
1515
outputs:
1616
image_tag: ${{ steps.image_tag.outputs.image_tag }}
1717
steps:
18-
- uses: actions/checkout@v2~
18+
- uses: actions/checkout@v2
19+
-
20+
name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v2
1922
- name: Extract Image Tag
2023
shell: bash
2124
run: |

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ RUN git clone --depth 1 --branch v1.7.1 https://github.com/coredns/coredns
77
COPY . /k8s_dns_chaos
88
# RUN ln -s /k8s_dns_chaos /coredns/plugin/k8s_dns_chaos
99
RUN echo "k8s_dns_chaos:github.com/chaos-mesh/k8s_dns_chaos" >> /coredns/plugin.cfg
10-
RUN --mount=type=cache,target=/go \
11-
cd coredns && \
10+
RUN cd coredns && \
1211
go mod edit -require github.com/chaos-mesh/[email protected] && \
1312
go mod edit -replace github.com/chaos-mesh/k8s_dns_chaos=/k8s_dns_chaos && \
1413
go mod edit -replace google.golang.org/grpc=google.golang.org/[email protected] && \
1514
go get github.com/chaos-mesh/k8s_dns_chaos && \
1615
go generate && \
1716
go mod tidy
18-
RUN --mount=type=cache,target=/go \
19-
cd coredns && make
17+
RUN cd coredns && make
2018

2119
FROM debian:stable-slim AS certs
2220
RUN apt-get update && apt-get -uy upgrade

0 commit comments

Comments
 (0)