Revert "Release 0.15.1 (#921)" #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create release draft | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- 'release-*' | |
jobs: | |
create-draft: | |
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') | |
name: Create release draft | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get version | |
id: version | |
run: | | |
echo version=$(cat VERSION) >> $GITHUB_OUTPUT | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Build binaries | |
id: binaries | |
run: | | |
make release-binaries | |
- name: Setup qemu | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and possibly push image | |
run: | | |
set -ex | |
docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}" quay.io | |
IMAGE_PUSH=yes IMAGE_TAG=v${{ steps.version.outputs.version }} make multiarch-image | |
env: | |
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.QUAY_TOKEN }} | |
- name: Create release draft | |
id: create-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release create "v${{ steps.version.outputs.version }}" \ | |
--title "v${{ steps.version.outputs.version }}" \ | |
--target "${{ github.base_ref }}" \ | |
--draft \ | |
dist/release/* |