Skip to content

Commit

Permalink
Merge pull request #1250 from tidepool-org/build-s3
Browse files Browse the repository at this point in the history
Also publish new builds to S3 (UPLOAD-376)
  • Loading branch information
gniezen authored Aug 3, 2020
2 parents d778c69 + 1566b34 commit 5197aed
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ If you are running Linux you probably need to be using an Ubuntu distribution or


1. Build the image
`docker-compose build`
`docker-compose build`

2. Run it
`docker-compose up -d`
`docker-compose up -d`

3. Work with it interactively.
3. Work with it interactively.

Even if you kill the Tidepool Uploader GUI the container will continue to run. You can work with the yarn commands like you would locally by using docker exec.

Expand Down Expand Up @@ -135,6 +135,25 @@ For a non-production release (alpha, dev, etc.)

The Uploader has a self-update mechanism that will look at the latest release and compare versions, downloading and prompting the user to update if a newer version is available. For production releases, only official releases will be considered. For non-production releases (`-alpha`, `-beta.2`, etc.) releases marked as `pre-release` will also be checked, matching against the string portion of the post-hyphen version segment. For more detail about this behavior see [the electron-builder docs concerning auto-update options]( https://github.com/electron-userland/electron-builder/wiki/Auto-Update#appupdater--internaleventemitter)

### CI server environment variables

We use the following environment variables on the CI servers:

| Variable | CI Server | Use |
|----------|-----------|-------|
| APPLEID | CircleCI | Notarization |
| APPLEIDPASS | CircleCI | Notarization |
| AWS_ACCESS_KEY_ID | Both | S3 builds and AV e-mails |
| AWS_SECRET_ACESS_KEY | Both | S3 builds and AV e-mails |
| CSC_FOR_PULL_REQUEST | Both | `true`, code signing for PR |
| CSC_KEY_PASSWORD | Both | Certificate password |
| CSC_LINK | Both | Code signing certificate |
| DEBUG | CircleCI | Set to `electron-builder` |
| GH_TOKEN | Both | For GitHub builds |
| PUBLISH_FOR_PULL_REQUEST | Both | `true`, build artefact for PR |
| ROLLBAR_POST_TOKEN | Both | Rollbar logging |
| FTP_AV_PASSWORD_TIDEPOOL | Appveyor | AV submission |

## Editor Configuration
**Atom**
```bash
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,14 @@
},
"dir"
]
}
},
"publish": [
"github",
{
"provider": "s3",
"bucket": "downloads.tidepool.org"
}
]
},
"bin": {
"electron": "./node_modules/.bin/electron"
Expand Down

0 comments on commit 5197aed

Please sign in to comment.