Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bryan Sazon committed May 2, 2018
1 parent 7b6c32e commit d1367e5
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,45 +46,67 @@ gota s3 --help

### Uploading to S3 Bucket

Set the AWS API key securely.

```bash
# set the aws credentials
export AWS_ACCESS_KEY=xxxxx
export AWS_SECRET_ACCESS_KEY=xxxxx
```

Command input:

```bash
gota s3 --bucket example-s3-bucket --srcFile sample.ipa --destDir ios_bucket
```

./gota s3 --bucket example-s3-bucket --srcFile sample.ipa --destDir ios_bucket
Command output:

```bash
2018/04/30 01:12:37 file uploaded: https://example-s3-bucket.s3.amazonaws.com/ios_bucket/1.0.0/4/appicon.png
2018/04/30 01:12:37 file uploaded: https://example-s3-bucket.s3.amazonaws.com/ios_bucket/1.0.0/version.json
2018/04/30 01:12:37 file uploaded: https://example-s3-bucket.s3.amazonaws.com/ios_bucket/1.0.0/4/index.html
2018/04/30 01:12:37 file uploaded: https://example-s3-bucket.s3.amazonaws.com/ios_bucket/1.0.0/4/sample.ipa
2018/04/30 01:12:37 file uploaded: https://example-s3-bucket.s3.amazonaws.com/ios_bucket/1.0.0/4/app.plist
```

__NOTE__: Currently, gota assigns an AES256 encryption and a public-read ACL to all files that are uploaded.
This may change to be configurable in the future.
__NOTE__:

Currently, gota assigns an AES256 encryption and a public-read ACL to all files that are uploaded. This may change to be configurable in the future.

### Uploading to Nexus

The repository must be a [Raw Site Repository](https://help.sonatype.com/repomanager3/raw-repositories-and-maven-sites).

Set the Nexus credentials securely.

```bash
# set the nexus credentials
# this can also be set via command flags
export NEXUS_USER=admin
export NEXUS_PASSWORD=admin123
```

./gota nexus --nexusHost http://localhost:8081 \
Command input:

```bash
gota nexus --nexusHost http://localhost:8081 \
--nexusRepo site \
--destDir nexus_android_repo \
--srcFile build/outpus/apk/sample.apk \
--srcFile build/outpus/apk/sample.apk
```

Command output:

```bash
file uploaded: http://localhost:8081/repository/site/nexus_android_repo/1.0.0/10222333/appicon.png
file uploaded: http://localhost:8081/repository/site/nexus_android_repo/1.0.0/version.json
file uploaded: http://localhost:8081/repository/site/nexus_android_repo/1.0.0/10222333/index.html
file uploaded: http://localhost:8081/repository/site/nexus_android_repo/1.0.0/10222333/sample.apk
```

__NOTE__: Currently supports only Nexus 3.
__NOTE__:

Currently supports only Nexus 3.

### Extra Features

Expand Down

0 comments on commit d1367e5

Please sign in to comment.