more channel -> release

pull/31880/head
Justin Newberry 1 year ago
parent e712a589de
commit 396509a10a
  1. 18
      release/README.md
  2. 9
      release/upload_casync_channel.sh
  3. 9
      release/upload_casync_release.sh

@ -3,9 +3,9 @@
## terms
- `channel` - a named version of openpilot (git branch, casync caidx) which receives updates<br>
- `prebuilt` - a channel which is already built for the comma 3/3x and contains only required files for running openpilot and identifying the channel<br>
- `release` - a `prebuilt` channel with `ALLOW_DEBUG=false` (`RELEASE=1` when building panda, ex: `nightly`, `release3`)<br>
- `channel` - a named version of openpilot (git branch, casync caidx) which receives updates
- `prebuilt` - a release which is already built for the comma 3/3x and contains only required files for running openpilot and identifying the release
- `release` - a `prebuilt` release with `ALLOW_DEBUG=false` (`RELEASE=1` when building panda, ex: `nightly`, `release3`)
## openpilot channels
@ -19,23 +19,23 @@
| git branches | `git` | installed manually, experimental features enabled, build required |
## creating casync channel
## creating casync build
`create_casync_prebuilt.sh` - creates a `prebuilt` casync openpilot channel, ready to upload to `openpilot-channels`
`create_casync_prebuilt.sh` - creates a `prebuilt` casync openpilot build, ready to upload to `openpilot-releases`
```bash
# run on a tici, within the directory you want to create the channel from.
# run on a tici, within the directory you want to create the build from.
# creates a prebuilt version of openpilot into BUILD_DIR and outputs the caidx
# and other casync files into CASYNC_DIR for uploading to openpilot-channels.
# and other casync files into CASYNC_DIR for uploading to openpilot-releases.
BUILD_DIR=/data/openpilot_build \
CASYNC_DIR=/data/casync \
OPENPILOT_CHANNEL=nightly \
release/create_casync_prebuilt.sh
```
`upload_casync_channel.sh` - helper for uploading a casync channel to `openpilot-channels`
`upload_casync_release.sh` - helper for uploading a casync release to `openpilot-releases`
## release channel
## release builds
to create a release build, set `RELEASE=1` environment variable when running the build script

@ -1,9 +0,0 @@
#!/bin/bash
CASYNC_DIR="${CASYNC_DIR:=/tmp/casync}"
OPENPILOT_CHANNELS="https://commadist.blob.core.windows.net/openpilot-channels/"
SAS="$(python -c 'from tools.lib.azure_container import get_container_sas;print(get_container_sas("commadist","openpilot-channels"))')"
azcopy cp "$CASYNC_DIR*" "$OPENPILOT_CHANNELS?$SAS" --recursive

@ -0,0 +1,9 @@
#!/bin/bash
CASYNC_DIR="${CASYNC_DIR:=/tmp/casync}"
OPENPILOT_RELEASES="https://commadist.blob.core.windows.net/openpilot-releases/"
SAS="$(python -c 'from tools.lib.azure_container import get_container_sas;print(get_container_sas("commadist","openpilot-releases"))')"
azcopy cp "$CASYNC_DIR*" "$OPENPILOT_RELEASES?$SAS" --recursive
Loading…
Cancel
Save