Skip to content

Prepare v2.17.0-rc.0 #181

Prepare v2.17.0-rc.0

Prepare v2.17.0-rc.0 #181

Workflow file for this run

name: Releases
on:
push:
tags:
# These aren't regexps. They are "Workflow Filter patterns"
- v[0-9]+.[0-9]+.[0-9]
- v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
jobs:
build-release:
strategy:
fail-fast: false
matrix:
runners:
- ubuntu-latest
- ubuntu-arm64
- macos-latest
- macOS-arm64
- windows-2019
runs-on: ${{ matrix.runners }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/install-dependencies
name: install dependencies
- name: set version
shell: bash
run: echo "TELEPRESENCE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: generate binaries
run: make release-binary
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: binaries
path: build-output/release
retention-days: 1
- if: runner.os == 'Linux' && runner.arch == 'X64'
name: Upload Docker image
run: |
docker login -u="${{ secrets.DOCKERHUB_USERNAME }}" -p="${{ secrets.DOCKERHUB_PASSWORD }}"
make push-images-x
publish-release:
runs-on: ubuntu-latest
needs: build-release
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Determine if version is RC or GA
id: semver_check
run: |
if [[ "${{ github.ref_name }}" =~ ^v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+$ ]]; then
echo "MAKE_LATEST=false" >> $GITHUB_ENV
echo "PRERELEASE=true" >> $GITHUB_ENV
else
echo "MAKE_LATEST=true" >> $GITHUB_ENV
echo "PRERELEASE=false" >> $GITHUB_ENV
fi
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "binaries/*"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ env.PRERELEASE }}
makeLatest: ${{ env.MAKE_LATEST }}
body: |
## Official Release Artifacts
### Linux
- 📦 [telepresence-linux-amd64](https://app.getambassador.io/download/tel2oss/releases/download/${{ github.ref_name }}/telepresence-linux-amd64)
- 📦 [telepresence-linux-arm64](https://app.getambassador.io/download/tel2oss/releases/download/${{ github.ref_name }}/telepresence-linux-arm64)
### OSX Darwin
- 📦 [telepresence-darwin-amd64](https://app.getambassador.io/download/tel2oss/releases/download/${{ github.ref_name }}/telepresence-darwin-amd64)
- 📦 [telepresence-darwin-arm64](https://app.getambassador.io/download/tel2oss/releases/download/${{ github.ref_name }}/telepresence-darwin-arm64)
### Windows
- 📦 [telepresence-windows-amd64.zip](https://app.getambassador.io/download/tel2oss/releases/download/${{ github.ref_name }}/telepresence-windows-amd64.zip)
For more builds across platforms and architectures, see the `Assets` section below.
And for more information, visit our [installation docs](https://www.telepresence.io/docs/latest/quick-start/).
![Assets](https://static.scarf.sh/a.png?x-pxid=d842651a-2e4d-465a-98e1-4808722c01ab)
test-release:
needs: publish-release
strategy:
fail-fast: false
matrix:
runners:
- ubuntu-latest
- ubuntu-arm64
- macos-latest
- macOS-arm64
- windows-2019
runs-on: ${{ matrix.runners }}
steps:
- uses: actions/checkout@v3
- name: Test release
uses: ./.github/actions/test-release
with:
release_version: ${{ github.ref_name }}