Skip to content

Commit

Permalink
ccc
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed May 11, 2024
1 parent 3b377b4 commit 1b18aa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: v0.11.2
install: true

# <--- Login, build and push image to Docker Hub --->
Expand All @@ -42,7 +41,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
- name: Build and push
id: meta
uses: docker/build-push-action@v5
with:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM --platform=${BUILDPLATFORM} golang:1.21 AS build
COPY / /src
WORKDIR /src

RUN --mount=type=cache,target=/go/pkg --mount=type=cache,target=/root/.cache/go-build make build

FROM --platform=${BUILDPLATFORM} ubuntu:22.04 AS base
Expand All @@ -9,6 +10,7 @@ ENV LANG=en_US.utf8
FROM base
COPY --from=build /src/bin/kcl /usr/local/bin/kcl
RUN /usr/local/bin/kcl
RUN /usr/local/bin/kcl version
RUN cp -r /root/go/bin/* /usr/local/bin/
RUN apt-get update
RUN apt-get install gcc git -y
Expand Down

0 comments on commit 1b18aa6

Please sign in to comment.