Skip to content

Commit

Permalink
Merge pull request #404 from hzxuzhonghu/fix-docker-image-release
Browse files Browse the repository at this point in the history
Fix dockerimage binary size zero caused by permission
  • Loading branch information
kmesh-bot authored May 31, 2024
2 parents d1e90d1 + f38c3d1 commit 12b8d0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
uses: actions/checkout@v3
- name: docker build
# master branch alway use latest tag
run: TAG=latest make docker
run: sudo TAG=latest make docker
- name: login registry
# This is where you will update the PAT to GITHUB_TOKEN
run: echo "${{ secrets.GH_PAT }}" | docker login ghcr.io -u $ --password-stdin
- name: docker push
run: docker push ghcr.io/kmesh-net/kmesh:latest
run: docker push ghcr.io/kmesh-net/kmesh:latest
12 changes: 6 additions & 6 deletions build/docker/kmesh.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ RUN \
--mount=type=cache,target=/var/cache/dnf \
yum install -y kmod util-linux iptables

ADD out/$arch/*so* /usr/lib64/
ADD out/$arch/kmesh-daemon /usr/bin/
ADD out/$arch/kmesh-cni /usr/bin/
ADD out/$arch/mdacore /usr/bin/
ADD build/docker/start_kmesh.sh /kmesh
ADD out/$arch/ko /kmesh
COPY out/$arch/*so* /usr/lib64/
COPY out/$arch/kmesh-daemon /usr/bin/
COPY out/$arch/kmesh-cni /usr/bin/
COPY out/$arch/mdacore /usr/bin/
COPY build/docker/start_kmesh.sh /kmesh
COPY out/$arch/ko /kmesh

0 comments on commit 12b8d0c

Please sign in to comment.