Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(github-action): let's check for common typos in coding #1206

Merged
merged 10 commits into from
Jan 7, 2025
Merged
7 changes: 7 additions & 0 deletions .github/workflows/lint_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,10 @@ jobs:
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Lint
run: make check

codespell: # call reusable workflow from central '.github' repo
uses: open-component-model/.github/.github/workflows/codespell.yml@main
secrets: inherit
with:
codespell-ignore: .github/config/wordlist.txt
codespell-files-glob: ./**/*.y*ml ./**/*.go
frewilhelm marked this conversation as resolved.
Show resolved Hide resolved
10 changes: 4 additions & 6 deletions .github/workflows/publish-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: publish as latest
on:
# publish on pushes to the main branch (image tagged as "latest")
# https://ocm.software/ocm/pkgs/container/ocm
workflow_dispatch:
push:
branches:
- main
Expand Down Expand Up @@ -61,13 +62,10 @@ jobs:
with:
context: .
# supported platforms of https://hub.docker.com/_/golang/tags?page=1&name=1.23-alpine3.20
# platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/open-component-model/ocm:latest
ghcr.io/open-component-model/ocm/ocm.software/ocmcli/ocmcli-image:latest
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
ghcr.io/hilmarf/ocm/ocm.software/ocmcli/ocmcli-image:latest
hilmarf marked this conversation as resolved.
Show resolved Hide resolved

ocm-cli-latest:
name: Build latest ocm-cli
Expand Down Expand Up @@ -166,4 +164,4 @@ jobs:
key: ${{ env.cache_name }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }}
upload-chunk-size: 256000000 # default of 32MB is not really optimal for our large cache, choose 256MB instead
env:
cache_name: ocm-cli-latest-go-cache # needs to be the same key in the end as in the build step
cache_name: ocm-cli-latest-go-cache # needs to be the same key in the end as in the build step
Loading