This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
Update go dependency spf13/viper to solve snyk findings. #12
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 g2i | |
on: | |
push: | |
tags: | |
- g2i-* | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.2 | |
- name: Build | |
run: | | |
CGO_ENABLED=0 go build g2i.go | |
- uses: olegtarasov/[email protected] | |
id: tagName | |
with: | |
tagRegex: "g2i-(.*)" | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "g2i" | |
body: "Release ${{ steps.tagName.outputs.tag }}" | |