Skip to content

Commit

Permalink
Fix: Fix copy path
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 2, 2023
1 parent 202ad7f commit b8bf14b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/sub-image-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ jobs:
cargo build --release --target aarch64-unknown-linux-gnu
cargo build --release --target x86_64-unknown-linux-gnu
mkdir /tmp/sub-image/arm64 -p
mkdir /tmp/sub-image/amd64 -p
mkdir ./tmp
cp target/x86_64-unknown-linux-gnu/release/sub-image /tmp/sub-image/amd64/sub-image
cp target/aarch64-unknown-linux-gnu/release/sub-image /tmp/sub-image/arm64/sub-image
cp target/x86_64-unknown-linux-gnu/release/sub-image ./tmp/amd64
cp target/aarch64-unknown-linux-gnu/release/sub-image ./tmp/arm64
- name: Build image
if: github.ref_name == 'main'
uses: ./.github/actions/build
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,5 @@ docker-compose.yml

test_results/*
!test_results/.gitkeep

sub-image/tmp
2 changes: 1 addition & 1 deletion sub-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:22.04
ARG TARGETARCH
COPY /tmp/sub-image/${TARGETARCH}/sub-image /app/sub-image
COPY ./tmp/${TARGETARCH} /app/sub-image

WORKDIR /app
ENTRYPOINT ["/app/sub-image"]

0 comments on commit b8bf14b

Please sign in to comment.