Skip to content

Commit

Permalink
goreleaser builds still broken, reverting to docker-buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Scaffidi committed Oct 29, 2024
1 parent fdf8a6d commit c8e038f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 41 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,22 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
# this takes the same amount of time as using docker-build, but doesn't currently work...
# it seems the binary in the docker image isn't being named '/manager'
# - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v6
# with:
# distribution: goreleaser
# version: "~> v2"
# args: release --clean
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
# this takes the same amount of time as using goreleaser, but doesn't create release tarballs
- name: Build and Push Docker Images
run: make docker-buildx GIT_TAG=${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
#- name: Build and Push Docker Images
# run: make docker-buildx GIT_TAG=${{ github.event.release.tag_name }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push OLM Bundle Image
run: make bundle bundle-build bundle-push GIT_TAG=${{ github.event.release.tag_name }}
env:
Expand Down
10 changes: 0 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,6 @@ kos:
org.opencontainers.image.url: "{{ .Env.GITHUB_SERVER_URL }}/{{ .Env.GITHUB_REPOSITORY }}"
org.opencontainers.image.source: "{{ .Env.GITHUB_SERVER_URL }}/{{ .Env.GITHUB_REPOSITORY }}"


# release:
# skip_upload: true
# footer: |
# # Container images

# ```
# ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}
# ```

changelog:
sort: asc
filters:
Expand Down
20 changes: 0 additions & 20 deletions .ko.yaml

This file was deleted.

0 comments on commit c8e038f

Please sign in to comment.