Add ubuntu/focal, and run each test doc through dangerzone-cli

This commit is contained in:
Micah Lee 2021-11-24 13:40:42 -08:00
parent 73f9200382
commit 7b05d20234
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -98,6 +98,25 @@ jobs:
- /caches/dangerzone-converter.tar.gz
- /caches/image-id.txt
tests:
working_directory: /app
machine:
- image: ubuntu-2004:202111-01
steps:
- run: *install-dependencies-deb
- checkout
- restore_cache: *restore-cache
- run: *copy-image
- run: *build-deb
- run:
name: Convert each test document
command: |
for FILE in $(ls test_docs); do
echo Converting $FILE
dangerzone-cli test_docs/$FILE
echo
done
build-ubuntu-impish:
docker:
- image: ubuntu:21.10
@ -179,6 +198,33 @@ jobs:
PACKAGECLOUD_DISTRO: "ubuntu/groovy"
<<: *deploy-packagecloud
build-ubuntu-focal:
docker:
- image: ubuntu:20.04
resource_class: medium+
steps:
- run: *install-dependencies-deb
- checkout
- restore_cache: *restore-cache
- run: *copy-image
- run: *build-deb
deploy-ubuntu-focal:
docker:
- image: ubuntu:20.04
resource_class: medium+
steps:
- run: *install-dependencies-deb
- checkout
- restore_cache: *restore-cache
- run: *copy-image
- run: *build-deb
- run:
environment:
PACKAGE_TYPE: "deb"
PACKAGECLOUD_DISTRO: "ubuntu/focal"
<<: *deploy-packagecloud
build-debian-bullseye:
docker:
- image: debian:bullseye
@ -293,6 +339,9 @@ workflows:
build:
jobs:
- build-container-image
- tests
requires:
- build-container-image
- build-ubuntu-impish:
requires:
- build-container-image
@ -302,6 +351,9 @@ workflows:
- build-ubuntu-groovy:
requires:
- build-container-image
- build-ubuntu-focal:
requires:
- build-container-image
- build-debian-bullseye:
requires:
- build-container-image
@ -347,6 +399,14 @@ workflows:
only: /^v.*/
branches:
ignore: /.*/
- deploy-ubuntu-focal:
requires:
- build-container-image
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- deploy-debian-bullseye:
requires:
- build-container-image