Skip to content

Commit

Permalink
Version v1.1.1
Browse files Browse the repository at this point in the history
- Bump dependencies
- Update GitHub Actions configuration
  • Loading branch information
pabateman committed Jun 10, 2024
2 parents 40da94e + 2dc565d commit ecfc39d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 27 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build-by-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ name: build by commit
on:
push:
branches:
- master
- 'feature/**'
- '*'

pull_request:
branches:
- master
- '*'

env:
ARTIFACT_VERSION: ${{ github.ref_name }}
Expand All @@ -17,16 +16,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.4'

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Verify go.mod is sane
run: go mod tidy && git diff --no-patch --exit-code

Expand Down
27 changes: 7 additions & 20 deletions .github/workflows/build-by-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.20'

- name: Check out code into the Go module directory
uses: actions/checkout@v2
go-version: '1.22.4'

- name: Verify go.mod is sane
run: go mod tidy && git diff --no-patch --exit-code

- name: Run code lint
uses: golangci/golangci-lint-action@v3.7.0
uses: golangci/golangci-lint-action@v6.0.1
with:
args: --timeout=3m

Expand All @@ -45,26 +42,16 @@ jobs:
hack/install-gox.sh
make deploy
- name: Create release
- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
# hacky glob pattern because this does not accept multiple patterns
file: out/kubectl-nsenter-*.*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
files: out/kubectl-nsenter-*.*

- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.46

0 comments on commit ecfc39d

Please sign in to comment.