chore(deps): Bump github.com/go-logr/logr in /ocm-updater (#50) #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish component | |
on: | |
release: | |
types: | |
- published | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
paths-ignore: | |
- 'docs/**' | |
- '**/*.md' | |
pull_request: | |
types: | |
- labeled | |
paths-ignore: | |
- 'docs/**' | |
- '**/*.md' | |
jobs: | |
buildAndPush: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.20' | |
- name: Login to GHCR | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Generate component | |
run: make component-descriptor | |
- name: Publish component | |
if: github.event_name != 'pull_request' | |
run: make publish-component-descriptor |