Skip to content

Commit

Permalink
ci: remove buildx features in github action
Browse files Browse the repository at this point in the history
Signed-off-by: STRRL <[email protected]>
  • Loading branch information
STRRL committed Nov 15, 2022
1 parent 3c2f55b commit 6bc439e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/upload_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
outputs:
image_tag: ${{ steps.image_tag.outputs.image_tag }}
steps:
- uses: actions/checkout@v2~
- uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Extract Image Tag
shell: bash
run: |
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ RUN git clone --depth 1 --branch v1.7.1 https://github.com/coredns/coredns
COPY . /k8s_dns_chaos
# RUN ln -s /k8s_dns_chaos /coredns/plugin/k8s_dns_chaos
RUN echo "k8s_dns_chaos:github.com/chaos-mesh/k8s_dns_chaos" >> /coredns/plugin.cfg
RUN --mount=type=cache,target=/go \
cd coredns && \
RUN cd coredns && \
go mod edit -require github.com/chaos-mesh/[email protected] && \
go mod edit -replace github.com/chaos-mesh/k8s_dns_chaos=/k8s_dns_chaos && \
go mod edit -replace google.golang.org/grpc=google.golang.org/[email protected] && \
go get github.com/chaos-mesh/k8s_dns_chaos && \
go generate && \
go mod tidy
RUN --mount=type=cache,target=/go \
cd coredns && make
RUN cd coredns && make

FROM debian:stable-slim AS certs
RUN apt-get update && apt-get -uy upgrade
Expand Down

0 comments on commit 6bc439e

Please sign in to comment.