Fix problem related to Debian DEB packaging in CI

This commit is contained in:
Federico Terzi 2020-02-03 18:30:58 +01:00
parent 71126ac88d
commit 02b920497c
2 changed files with 7 additions and 8 deletions

View File

@ -24,10 +24,8 @@ jobs:
vmImage: 'ubuntu-latest'
steps:
- script: |
cd ci/ubuntu
sudo docker build -t espanso-ubuntu .
cd ../../
sudo docker run --rm -v "$(pwd):/shared" -it espanso-ubuntu ./build_deb.sh
sudo docker build -t espanso-ubuntu . -f ci/ubuntu/Dockerfile
sudo docker run --rm -v "$(pwd):/shared" -it espanso-ubuntu espanso/ci/ubuntu/build_deb.sh
displayName: Setting up docker
- template: ci/deploy.yml

View File

@ -30,8 +30,9 @@ RUN set -eux; \
cargo --version; \
rustc --version;
RUN git clone https://github.com/federico-terzi/espanso.git \
&& cd espanso \
&& cargo install cargo-deb
RUN mkdir espanso
COPY build_deb.sh .
COPY . espanso
RUN cd espanso \
&& cargo install cargo-deb