Skip to content

build(go): bump k8s.io/api from 0.32.0 to 0.32.1 #244

build(go): bump k8s.io/api from 0.32.0 to 0.32.1

build(go): bump k8s.io/api from 0.32.0 to 0.32.1 #244

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Lint commit message(s)
run: |
yarn add @commitlint/cli
yarn add @commitlint/config-conventional
yarn run commitlint --from HEAD~${{ github.event.pull_request.commits }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
tags: ghcr.io/${{ github.repository }}:latest
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test
run: go test ./...
release:
if: github.event_name == 'push'
needs:
- lint
- test
outputs:
next-release-version: ${{ steps.semantic-release.outputs.next-release-version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
- id: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
yarn add semantic-release
yarn add @semantic-release/exec
yarn add @semantic-release/git
yarn run semantic-release
publish:
if: needs.release.outputs.next-release-version != ''
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
platforms: linux/amd64, linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ needs.release.outputs.next-release-version }}
ghcr.io/${{ github.repository }}:latest