Skip to content

fix(chart): add rbac for default SA + server in each tenant (#513) #53

fix(chart): add rbac for default SA + server in each tenant (#513)

fix(chart): add rbac for default SA + server in each tenant (#513) #53

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
env:
GO_VERSION: 1.23
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
with:
go-version: "${{ env.GO_VERSION }}"
- name: Get ldflags env values
run: |
echo "BUILD_TIMESTAMP=$(date +'%s')" >> $GITHUB_ENV
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
echo "COMMIT_HASH=${{ github.sha }}" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
version:
runs-on: ubuntu-latest
environment: production
env:
CHART_PATH: ./deploy/charts/burrito
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Bump VERSION file
run: |
echo ${{ github.ref_name }} > VERSION
- name: Bump Helm Chart versions
run: |
export CHART_VERSION=$(echo ${{ github.ref_name }} | sed 's/v//g')
export APP_VERSION=${{ github.ref_name }}
yq -i '.version = env(CHART_VERSION)' $CHART_PATH/Chart.yaml
yq -i '.appVersion = env(APP_VERSION)' $CHART_PATH/Chart.yaml
- name: Commit version to repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(release): bump version to ${{ github.ref_name }}"
push_options: --force
build-and-push:
uses: ./.github/workflows/build-and-push.yaml