Skip to content

Commit

Permalink
ci: support next/kelvin/* binary and version string uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-levan committed Mar 20, 2023
1 parent fb7a812 commit d3c61ba
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Push to next/kelvin/*

on:
push:
branches:
- 'next/kelvin/*'
paths:
- '*.bazel'
- '.bazelrc'
- '.github/workflows/**.yml'
- 'PACE'
- 'VERSION'
- 'bazel/**'
- 'pkg/**'

jobs:
urbit:
uses: ./.github/workflows/shared.yml
with:
docker: true
upload: true
next: ${{ github.ref | replace('refs/heads/next/kelvin/', '') }}
secrets: inherit
12 changes: 10 additions & 2 deletions .github/workflows/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ jobs:
run: |
bazel build :version_str
sha_version=$(cat ./bazel-bin/version)
target="gs://${UPLOAD_BASE}/${{ inputs.pace }}/v${sha_version}/vere-v${sha_version}-${{ matrix.target }}"
if ${{ inputs.next != null }}; then
target="gs://${UPLOAD_BASE}/next/kelvin/${{ inputs.next }}/v${sha_version}/vere-v${sha_version}-${{ matrix.target }}"
else
target="gs://${UPLOAD_BASE}/${{ inputs.pace }}/v${sha_version}/vere-v${sha_version}-${{ matrix.target }}"
fi
args=""
# We never overwrite a binary deployed to the "live" train, but we do
Expand Down Expand Up @@ -229,7 +233,11 @@ jobs:
- name: Upload latest deployed version string to GCP
run: |
echo "${{ inputs.pace }}" > ./PACE
target="gs://${UPLOAD_BASE}/${{ inputs.pace }}/last"
if ${{ inputs.next != null }}; then
target="gs://${UPLOAD_BASE}/next/kelvin/${{ inputs.next }}/last"
else
target="gs://${UPLOAD_BASE}/${{ inputs.pace }}/last"
fi
bazel build :version_str
# We don't use -n here because we want to overwrite the version
Expand Down
15 changes: 13 additions & 2 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ the next release.
## Deploy Endpoints

Binaries are deployed to the following endpoints, where `{VN}` is the version
number in VERSION, `{CS}` is the shortened commit SHA of the commit the binary
number in `VERSION`, `{CS}` is the shortened commit SHA of the commit the binary
is built from, and `{P}` is one of `linux-aarch64`, `linux-x86_64`,
`macos-aarch64`, and `macos-x86_64`:

Expand All @@ -71,7 +71,18 @@ is built from, and `{P}` is one of `linux-aarch64`, `linux-x86_64`,

The most recently deployed version of a given train (pace) is uploaded to
https://bootstrap.urbit.org/vere/{T}/last, where `{T}` is one of `edge`, `soon`,
and `live`:
and `live`.

### `next/kelvin/*` Endpoints

We also upload binaries for `next/kelvin/*` branches, where `{K}` is the Kelvin
version of the branch:

- https://bootstrap.urbit.org/vere/next/kelvin/{K}/v{VN}-{CS}/vere-v{VN}-{CS}-{P}

Last deployed version strings for the `next/kelvin/*` branches are uploaded to:

- https://bootstrap.urbit.org/vere/next/kelvin/{K}/last

## Releases

Expand Down

0 comments on commit d3c61ba

Please sign in to comment.