Skip to content

update go mod

update go mod #5

Workflow file for this run

name: goreleaser
on:
push:
tags:
- 'v*'
permissions:
contents: write
packages: write
env:
REGISTRY: ghcr.io
CONTROLLER_IMAGE: kubestellar/ocm-transport-plugin
CHART_IMAGE: kubestellar/ocm-transport-plugin-chart
CHART_PATH: ./chart
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: v1.20
- name: Delete non-semver tags
run: 'git tag -d $(git tag -l | grep -v "^v")'
- name: Set LDFLAGS
run: echo LDFLAGS="$(make ldflags)" >> $GITHUB_ENV
- name: Run GoReleaser on tag
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --timeout 60m --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USER: ${{ github.actor }}
EMAIL: ${{ github.actor}}@users.noreply.github.com