Skip to content

Commit

Permalink
update workflow and Dockerfile to reflect binary name change
Browse files Browse the repository at this point in the history
  • Loading branch information
anweiss committed Nov 17, 2020
1 parent 1dc8c5f commit 6d41a21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,26 @@ jobs:
- name: Build CLI
if: matrix.os == 'ubuntu-latest'
run: |
cargo b --release --bin cli
cp target/release/cli cddl-linux-amd64
cargo b --release --bin cddl
cp target/release/cddl cddl-linux-amd64
chmod +x cddl-linux-amd64
tar -czvf cddl-linux-amd64.tar.gz cddl-linux-amd64
- name: Build CLI
if: matrix.os == 'macOS-latest'
run: |
source $HOME/.cargo/env
cargo b --release --bin cli
cp target/release/cli cddl-darwin-amd64
cargo b --release --bin cddl
cp target/release/cddl cddl-darwin-amd64
chmod +x cddl-darwin-amd64
zip cddl-darwin-amd64.zip cddl-darwin-amd64
- name: Build CLI
if: matrix.os == 'windows-latest'
shell: powershell
run: |
cargo b --release --bin cli
cp target\release\cli.exe cddl-windows-amd64.exe
cargo b --release --bin cddl
cp target\release\cddl.exe cddl-windows-amd64.exe
Compress-Archive -Path .\cddl-windows-amd64.exe -DestinationPath cddl-windows-amd64.zip
- name: Upload binary asset
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ekidd/rust-musl-builder:1.47.0 AS builder
COPY . ./
RUN cargo b --release --bin cli
RUN cargo b --release --bin cddl

FROM scratch
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/cli /cli
ENTRYPOINT [ "/cli" ]
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/cddl /cddl
ENTRYPOINT [ "/cddl" ]

0 comments on commit 6d41a21

Please sign in to comment.