chore(deps): update gcr.io/distroless/static docker digest to 5c7e2b4… #2572
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 | |
on: | |
push: | |
branches-ignore: | |
- renovate/** | |
paths: | |
- ".github/workflows/build.yaml" | |
- "go.mod" | |
- "go.sum" | |
- "Taskfile.yaml" | |
- "**.go" | |
- "**.go.json" | |
- "etc/Dockerfile" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- ".github/workflows/build.yaml" | |
- "go.mod" | |
- "go.sum" | |
- "Taskfile.yaml" | |
- "**.go" | |
- "**.go.json" | |
- "etc/Dockerfile" | |
env: | |
GOTOOLCHAIN: "local" | |
jobs: | |
docker: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
cache: false | |
- name: Go Build Cache (build) | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg | |
key: go-cache-122-${{ hashFiles('**/go.sum') }}-build | |
restore-keys: | | |
go-cache-122-${{ hashFiles('**/go.sum') }}- | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
- run: go get ./... | |
- run: task build | |
name: Build Binary | |
- run: docker build -t tmp -f etc/Dockerfile . | |
- run: docker run tmp -h |