Bump CAPI to v1.7.5 and CAPE to v1.5.0 (#45) #47
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: release | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
release: | |
name: Create draft release | |
runs-on: ubuntu-latest | |
environment: default | |
steps: | |
- name: Set environment variables | |
run: | | |
echo "IMAGE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | |
if [ "${{ secrets.REGISTRY }}" != "" ]; then | |
echo "REGISTRY=${{ secrets.REGISTRY }}" >> $GITHUB_ENV | |
fi | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Calculate go version | |
run: echo "go_version=$(make go-version)" >> $GITHUB_ENV | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.go_version }} | |
- name: Login docker | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Generate release | |
run: make release | |
- name: Generate draft release | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
tag_name: ${{ env.TAG }} | |
name: Release ${{ env.TAG }} | |
files: out/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |