Skip to content

Commit

Permalink
Adopt new makefile for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pabateman committed Jun 11, 2024
1 parent acbfb62 commit c01dc08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-by-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ env:
jobs:

build:
strategy:
matrix:
goos: ["linux", "darwin"]
goarch: ["amd64", "arm64"]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -40,7 +45,7 @@ jobs:
set -euo pipefail
sudo apt update
sudo apt install -y upx
make deploy
make ${{ matrix.goos }}/${{ matrix.goarch }}/archive
- name: Create Release
id: create_release
Expand All @@ -51,7 +56,7 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
files: out/kubectl-nsenter-*.*
files: out/*

# - name: Update new version in krew-index
# uses: rajatjindal/krew-release-bot@v0.0.46
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ help:
@echo ' - deploy: build artifacts for a new deployment'
@echo ' - dev: build the binary for the current platform'
@echo ' - dist: create a tar archive of the source code'
@echo ' - help: print this help'
@echo ' - lint: run golangci-lint'
@echo ' - help: print this help'

$(BUILDDIR):
mkdir -p "$@"
Expand Down

0 comments on commit c01dc08

Please sign in to comment.