Skip to content

fix serviceAccount (#46) #48

fix serviceAccount (#46)

fix serviceAccount (#46) #48

Workflow file for this run

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 }}