Skip to content

Commit

Permalink
feat: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kianaza committed Jun 23, 2024
1 parent 26a83ef commit 5314343
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,37 @@ name: goreleaser
on:
push:
tags:
- '*'
- 'v*'
jobs:
docker:
name: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v3
id: meta
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- uses: docker/build-push-action@v2
with:
file: "Dockerfile"
context: .
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
goreleaser:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 5314343

Please sign in to comment.