Skip to content

chore(deps): update dependency: bump github.com/go-chi/chi/v5 from 5.2.3 to 5.2.4 #73

chore(deps): update dependency: bump github.com/go-chi/chi/v5 from 5.2.3 to 5.2.4

chore(deps): update dependency: bump github.com/go-chi/chi/v5 from 5.2.3 to 5.2.4 #73

Workflow file for this run

name: Build and push
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# generate tags and labels for the Docker image
# should contain the commit SHA, the branch name, and a tag if the commit is tagged, and latest
- name: Docker metadata
uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha,format=long,prefix=
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
cache: true
- name: Build the Go binary
run: make build
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}