Skip to content

chore(internal): rm --client flag from helm version cmd check (#981) #39

chore(internal): rm --client flag from helm version cmd check (#981)

chore(internal): rm --client flag from helm version cmd check (#981) #39

Workflow file for this run

on:
push:
branches:
- master
tags:
- v*
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release ${{ github.ref_type != 'tag' && '--skip=publish,validate' || '' }} --release-notes release-notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: |
ghcr.io/${{ github.repository }}
flavor: |
latest=true
tags: ${{ github.ref_type == 'tag' && 'type=semver,pattern=v{{version}}' || '' }}
- name: Build and push Docker image
id: push
uses: docker/[email protected]
with:
context: .
push: ${{ github.ref_type == 'tag' && 'true' || 'false' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}