bump google.golang.org/grpc from 1.40.0 to 1.56.3 #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Binary | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v2.5.2 | |
with: | |
args: --timeout=5m | |
- name: Tests | |
run: | | |
make all | |
release: | |
needs: build | |
env: | |
DOCKER_CLI_EXPERIMENTAL: "enabled" | |
UPX_VERSION: "3.96" | |
COSIGN_KEY_LOCATION: "/tmp/cosign.key" | |
runs-on: ubuntu-latest | |
if: success() && startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Docker Login | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GH_PAT }} | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
- name: download upx | |
run: | | |
cd /tmp | |
wget https://github.com/upx/upx/releases/download/v$UPX_VERSION/upx-$UPX_VERSION-amd64_linux.tar.xz | |
tar xvf upx-$UPX_VERSION-amd64_linux.tar.xz | |
sudo mv upx-$UPX_VERSION-amd64_linux/upx /usr/local/sbin | |
shell: bash | |
- uses: sigstore/cosign-installer@main | |
with: | |
cosign-release: 'v1.2.0' | |
- name: install cosign private key | |
run: 'echo "$COSIGN_KEY" > $COSIGN_KEY_LOCATION' | |
shell: bash | |
env: | |
COSIGN_KEY: ${{secrets.COSIGN_KEY}} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} |