mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
Try building the container image and then building the ubuntu 21.10 package, without deploying
This commit is contained in:
parent
09f3f3364a
commit
92012c3699
1 changed files with 27 additions and 11 deletions
|
@ -8,11 +8,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
- restore_cache:
|
|
||||||
keys: v1-{{ .Revision }}
|
|
||||||
paths:
|
|
||||||
- /caches/dangerzone-converter.tar.gz
|
|
||||||
- /caches/image-id.txt
|
|
||||||
- run:
|
- run:
|
||||||
name: Build Dangerzone image
|
name: Build Dangerzone image
|
||||||
command: |
|
command: |
|
||||||
|
@ -43,6 +38,16 @@ jobs:
|
||||||
gem install -N rake
|
gem install -N rake
|
||||||
gem install -N package_cloud
|
gem install -N package_cloud
|
||||||
- checkout
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
key: v1-{{ .Revision }}
|
||||||
|
paths:
|
||||||
|
- /caches/dangerzone-converter.tar.gz
|
||||||
|
- /caches/image-id.txt
|
||||||
|
- run:
|
||||||
|
name: Copy container image into package
|
||||||
|
command: |
|
||||||
|
cp /caches/dangerzone-converter.tar.gz share/
|
||||||
|
cp /caches/image-id.txt share/
|
||||||
- run:
|
- run:
|
||||||
name: Create the .deb package
|
name: Create the .deb package
|
||||||
command: |
|
command: |
|
||||||
|
@ -199,17 +204,28 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Deploy to packagecloud.io
|
name: Deploy to packagecloud.io
|
||||||
command: |
|
command: |
|
||||||
VERSION=$(cat share/version.txt)
|
if [[ ! -z "${SKIP_DEPLOY}" ]]; then
|
||||||
package_cloud push firstlookmedia/code/fedora/32 dist/dangerzone-${VERSION}-1.noarch.rpm
|
echo "Skipping deploy..."
|
||||||
package_cloud push firstlookmedia/code/fedora/32 dist/dangerzone-${VERSION}-1.src.rpm
|
else
|
||||||
|
VERSION=$(cat share/version.txt)
|
||||||
|
package_cloud push firstlookmedia/code/fedora/32 dist/dangerzone-${VERSION}-1.noarch.rpm
|
||||||
|
package_cloud push firstlookmedia/code/fedora/32 dist/dangerzone-${VERSION}-1.src.rpm
|
||||||
|
fi
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
|
build-and-test:
|
||||||
|
jobs:
|
||||||
|
- build-container-image
|
||||||
|
- build-ubuntu-impish:
|
||||||
|
environment:
|
||||||
|
SKIP_DEPLOY: 1
|
||||||
|
requires:
|
||||||
|
- build-container-image
|
||||||
|
|
||||||
build-tags:
|
build-tags:
|
||||||
jobs:
|
jobs:
|
||||||
# Build container image on every commit
|
|
||||||
- build-container-image
|
|
||||||
|
|
||||||
# Ubuntu 21.10 (impish) not yet supported by packagecloud.io
|
# Ubuntu 21.10 (impish) not yet supported by packagecloud.io
|
||||||
# - build-ubuntu-impish:
|
# - build-ubuntu-impish:
|
||||||
# filters:
|
# filters:
|
||||||
|
|
Loading…
Reference in a new issue