Skip to content

Commit

Permalink
fix cli publish tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
anweiss committed May 12, 2020
1 parent 3f4bcba commit 6577ee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 6577ee1

Please sign in to comment.