Skip to content

πŸ“ docs(go.mod): update dependencies for improved compatibility and featu #1

πŸ“ docs(go.mod): update dependencies for improved compatibility and featu

πŸ“ docs(go.mod): update dependencies for improved compatibility and featu #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
runs-on: ubuntu-latest
needs: goreleaser
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# Publish to the canonical image name (Marketplace action uses this).
images: ghcr.io/clouddrove/syncerd
tags: |
# Push the exact git tag (e.g. v1.2.3)
type=ref,event=tag
# Also push semver without the v-prefix (e.g. 1.2.3)
type=semver,pattern={{version}}
# Push floating major tags (e.g. v1, 1)
type=semver,pattern=v{{major}}
type=semver,pattern={{major}}
# Convenience
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}