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' vmImage: 'ubuntu-latest'
steps: steps:
- script: | - script: |
cd ci/ubuntu sudo docker build -t espanso-ubuntu . -f ci/ubuntu/Dockerfile
sudo docker build -t espanso-ubuntu . sudo docker run --rm -v "$(pwd):/shared" -it espanso-ubuntu espanso/ci/ubuntu/build_deb.sh
cd ../../
sudo docker run --rm -v "$(pwd):/shared" -it espanso-ubuntu ./build_deb.sh
displayName: Setting up docker displayName: Setting up docker
- template: ci/deploy.yml - template: ci/deploy.yml

View File

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