Skip to content

Commit

Permalink
Add S3 doc, github actions releases
Browse files Browse the repository at this point in the history
* Updated README with option to download OONI reports from S3
* Create GitHub action to create releases
* Add freebsd and arm releases
  • Loading branch information
anadahz committed Mar 11, 2020
1 parent 9692b92 commit fa03ab0
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

on:
push:

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 3 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ builds:
binary: ooni-sync
goos:
- windows
- freebsd
- darwin
- linux
goarch:
- amd64
release:
github:
owner: thetorproject
name: ooni-sync
archive:
format: tar.gz
- arm64
- arm
6 changes: 5 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ooni-sync now supports downloading OONI reports from the AWS S3 bucket
[ooni-data](https://registry.opendata.aws/ooni/). Please use the option
`-s3-direct` to download OONI reports from the AWS S3 bucket.

ATTENTION: OONI now offers a full database to quicky access all the data
and the use of the OONI Sync tool is no longer recommended. For all the
options available to access OONI data see: https://ooni.org/data/.
Expand All @@ -8,7 +12,7 @@ that are not already present locally. You can run it again and again to
keep a local directory up to date with newly published reports.

Example usage:
ooni-sync -xz -directory reports test_name=tcp_connect
ooni-sync -s3-direct -xz -directory reports test_name=tcp_connect
This command will create the directory "reports" if it doesn't exist,
download all tcp_connect reports that are not already present in the
directory, and compress the downloaded reports with xz.
Expand Down

0 comments on commit fa03ab0

Please sign in to comment.