diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 601c7ca..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Release - -on: - push: - tags: - - '*' - -jobs: - release: - name: Build and Publish - runs-on: ubuntu-latest - - permissions: - contents: write - packages: write - attestations: write - id-token: write - - env: - KO_DOCKER_REPO: ghcr.io/rpcpool - - steps: - - name: Checkout Code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - fetch-depth: 0 - - - name: Set up Go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 - with: - go-version-file: go.mod - check-latest: false - - - name: Set up ko - uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9 - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0 - with: - version: '~> v2' - args: release --clean - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 99b58eb..31f1adc 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -28,9 +28,10 @@ builds: archives: - formats: [tar.gz] - # this name template makes the OS and Arch compatible with the results of `uname`. + # Use .Binary so each build produces a distinct archive name: + # certificator_Linux_x86_64.tar.gz and certificatee_Linux_x86_64.tar.gz name_template: >- - {{ .ProjectName }}_ + {{ .Binary }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 @@ -43,21 +44,3 @@ changelog: exclude: - "^docs:" - "^test:" - -kos: - - id: certificator - build: certificator - base_import_paths: true - base_image: gcr.io/distroless/static-debian13:latest - tags: - - latest - - "{{.Tag}}" - - "{{if not .Prerelease}}stable{{end}}" - - id: certificatee - build: certificatee - base_import_paths: true - base_image: gcr.io/distroless/static-debian13:latest - tags: - - latest - - "{{.Tag}}" - - "{{if not .Prerelease}}stable{{end}}"