Skip to content

Merge pull request #625 from kubernetes-sigs/dependabot/go_modules/al… #1177

Merge pull request #625 from kubernetes-sigs/dependabot/go_modules/al…

Merge pull request #625 from kubernetes-sigs/dependabot/go_modules/al… #1177

Workflow file for this run

name: Snapshot
on:
push:
branches:
- 'main'
pull_request:
permissions: {}
jobs:
snapshot:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out code onto GOPATH
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Extract version of Go to use
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile.dev)" >> $GITHUB_ENV
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '${{ env.GOVERSION }}'
check-latest: true
cache: false
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@e24998b8b67b290c2fa8b7c14fcfa7de2c5c9b8c # v7.1.0
with:
install-only: true
- name: Install bom
uses: kubernetes-sigs/release-actions/setup-bom@8753ea6bdadb814d779c6ec34eaca689dbfb492b # v0.4.3
- name: Run Mage
uses: magefile/mage-action@a662bd8c29d8106879588cfff83b2faf6e6f59db # v4.0.0
with:
version: latest
args: buildBinariesSnapshot
- name: check binary
run: ./dist/tejolote_linux_amd64_v1/tejolote version