From 6577ee1d42ecaa6fa4dabd14a2896ef363f4ddec Mon Sep 17 00:00:00 2001 From: anweiss <2326106+anweiss@users.noreply.github.com> Date: Tue, 12 May 2020 18:18:20 -0400 Subject: [PATCH] fix cli publish tasks --- .github/workflows/publish.yml | 6 +++--- Dockerfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 67d5ef1f..c2fcda24 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,7 +27,7 @@ jobs: if: matrix.os == 'ubuntu-latest' run: | cargo b --release --bin cli - cp target/release/cddl cddl-linux-amd64 + cp target/release/cli cddl-linux-amd64 chmod +x cddl-linux-amd64 tar -czvf cddl-linux-amd64.tar.gz cddl-linux-amd64 @@ -36,7 +36,7 @@ jobs: run: | source $HOME/.cargo/env cargo b --release --bin cli - cp target/release/cddl cddl-darwin-amd64 + cp target/release/cli cddl-darwin-amd64 chmod +x cddl-darwin-amd64 zip cddl-darwin-amd64.zip cddl-darwin-amd64 @@ -45,7 +45,7 @@ jobs: shell: powershell run: | cargo b --release --bin cli - cp target\release\cddl.exe cddl-windows-amd64.exe + cp target\release\cli.exe cddl-windows-amd64.exe Compress-Archive -Path .\cddl-windows-amd64.exe -DestinationPath cddl-windows-amd64.zip - name: Upload binary asset diff --git a/Dockerfile b/Dockerfile index d709309c..a124b684 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,5 @@ COPY . ./ RUN cargo b --release --bin cli FROM scratch -COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/cddl / +COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/cli / ENTRYPOINT [ "/cddl" ] \ No newline at end of file