Skip to content

Bump version to 0.23.0 #115

Bump version to 0.23.0

Bump version to 0.23.0 #115

Workflow file for this run

name: Publish
on:
- push
- workflow_dispatch
jobs:
goversion:
uses: ./.github/workflows/go-version.yaml
publish-tagged:
if: |
startsWith(github.ref, 'refs/tags/v') &&
!github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
needs: goversion
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ needs.goversion.outputs.goversion }}
- uses: ko-build/setup-ko@v0.8
name: Setup ko
- name: Run ko publish for ghcr.io
env:
KO_DOCKER_REPO: ghcr.io/${{ github.repository_owner }}
run: |
export COMMIT=${{ github.sha}}
export TAG=$(echo ${{ github.ref }} | cut -d "/" -f 3 - )
ko publish ./ --base-import-paths --platform=linux/amd64,linux/arm64 --tags latest,$TAG \
--image-label org.opencontainers.image.source="https://github.com/ahrtr/etcd-defrag" \
--image-label org.opencontainers.image.created="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
--image-label org.opencontainers.image.authors="ahrtr" \
--image-label org.opencontainers.image.url="https://ghcr.io/ahrtr/etcd-defrag" \
--image-label org.opencontainers.image.vendor="ahrtr"