feat: only publish pkgs when we're in staging branches (#556)

See https://github.com/ooni/probe/issues/1506#issuecomment-949664779
This commit is contained in:
Simone Basso 2021-10-22 16:13:44 +02:00 committed by GitHub
parent 197dc37461
commit a9319142f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 4 deletions

View File

@ -3,6 +3,7 @@ name: android
on:
push:
branches:
- "mobile-staging"
- "release/**"
jobs:
test:

View File

@ -3,6 +3,7 @@ name: ios
on:
push:
branches:
- "mobile-staging"
- "release/**"
jobs:
test:

View File

@ -1,3 +1,4 @@
# jafar checks whether the jafar tool is still WAI.
name: jafar
on:
push:

View File

@ -1,11 +1,10 @@
# linux builds ooniprobe for Linux
# linux builds and publishes ooniprobe for Linux
name: linux
on:
push:
branches:
- "release/**"
- "stable"
- "linux"
- "ooniprobe-staging"
jobs:
build_386:
@ -15,6 +14,7 @@ jobs:
- run: ./mk OONI_PSIPHON_TAGS="" DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/386
- run: ./E2E/ooniprobe.sh ./CLI/linux/386/ooniprobe
- run: ./CLI/linux/pubdebian
if: github.ref == 'refs/heads/ooniprobe-staging'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@ -27,6 +27,7 @@ jobs:
- run: ./mk OONI_PSIPHON_TAGS="" DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/amd64
- run: ./E2E/ooniprobe.sh ./CLI/linux/amd64/ooniprobe
- run: ./CLI/linux/pubdebian
if: github.ref == 'refs/heads/ooniprobe-staging'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@ -41,6 +42,7 @@ jobs:
- run: ./mk OONI_PSIPHON_TAGS="" DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/arm
- run: ./E2E/ooniprobe.sh ./CLI/linux/arm/ooniprobe
- run: ./CLI/linux/pubdebian
if: github.ref == 'refs/heads/ooniprobe-staging'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@ -55,6 +57,7 @@ jobs:
- run: ./mk OONI_PSIPHON_TAGS="" DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/arm64
- run: ./E2E/ooniprobe.sh ./CLI/linux/arm64/ooniprobe
- run: ./CLI/linux/pubdebian
if: github.ref == 'refs/heads/ooniprobe-staging'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

View File

@ -5,6 +5,7 @@ name: miniooni
on:
push:
branches:
- "master"
- "release/**"
jobs:
test:

View File

@ -1,9 +1,10 @@
# oohelperd builds oohelperd for Linux
# oohelperd builds and publishes oohelperd for Linux
name: oohelperd
on:
push:
branches:
- "release/**"
- "oohelperd-staging"
jobs:
build_amd64:
@ -31,6 +32,7 @@ jobs:
dpkg-buildpackage -us -uc -b
- name: upload package
if: github.ref == 'refs/heads/oohelperd-staging'
run: |
curl -fsSLO https://raw.githubusercontent.com/ooni/sysadmin/master/tools/debops-ci
chmod +x debops-ci