Skip to content

Update component-descriptor-v2-schema.yaml #73

Update component-descriptor-v2-schema.yaml

Update component-descriptor-v2-schema.yaml #73

Workflow file for this run

name: publish as latest
on:
# publish on pushes to the main branch (image tagged as "latest")
# https://ocm.software/ocm/pkgs/container/ocm
push:
branches:
- main
paths:
- '**/*.go'
- '**/*.mod'
- '**/*.sum'
- 'resources/**'
jobs:
ocm-cli-latest:
name: ocm-cli build latest
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
packages: write
steps:
- name: Self Hosted Runner Post Job Cleanup Action
uses: TooMuch4U/[email protected]
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.OCMBOT_APP_ID }}
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '${{ github.workspace }}/go.mod'
check-latest: false
- name: Run GoReleaser --nightly
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: 2.2.0
args: release --clean --timeout 60m --skip=validate --config=.github/config/latest.yml
env:
GITHUBORG: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}