Skip to content

Commit

Permalink
Merge pull request #16 from pdettori/ci
Browse files Browse the repository at this point in the history
✨ Update CI with ko
  • Loading branch information
pdettori authored Jun 10, 2023
2 parents 66dd887 + cc5e72e commit 5857c2d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 47 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: goreleaser

on:
# pull_request:
# paths:
# - .github/workflows/goreleaser.yml
# - .goreleaser.yaml
push:
tags:
- 'v*'
Expand All @@ -29,25 +25,11 @@ jobs:
- name: Set LDFLAGS
run: echo LDFLAGS="$(make ldflags)" >> $GITHUB_ENV
- name: Run GoReleaser on tag
# if: github.event_name != 'pull_request'
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --timeout 60m -clean
args: release --timeout 60m --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Run GoReleaser on pull request
# if: github.event_name == 'pull_request'
# uses: goreleaser/goreleaser-action@v4
# with:
# distribution: goreleaser
# version: latest
# args: release --timeout 60m --snapshot
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: cytopia/[email protected]
# if: ${{ always() }}
# with:
# name: binaries
# path: dist/*.tar.gz

26 changes: 0 additions & 26 deletions .github/workflows/kflex-operator-image.yaml

This file was deleted.

17 changes: 16 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,22 @@ archives:
- id: kflex
builds:
- kflex
kos:
- main: ./cmd/manager
tags:
- '{{.Version}}'
- latest
bare: true
preserve_import_paths: false
ldflags:
- "{{ .Env.LDFLAGS }}"
platforms:
- linux/amd64
- linux/arm64
env:
- CGO_ENABLED=0
release:
draft: false
prerelease: auto
mode: keep-existing
mode: keep-existing

0 comments on commit 5857c2d

Please sign in to comment.