Skip to content

Commit

Permalink
feature(ci): release gemini using goreleaser and github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
CodeLieutenant authored and fruch committed Sep 17, 2024
1 parent 6f91eb7 commit ab3e873
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: goreleaser

on:
push:
tags:
- "*"

permissions:
contents: write
packages: write
issues: write
id-token: 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.23'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "v2.3.1"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 0 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ checksum:
snapshot:
name_template: "{{ .Tag }}-next"

blobs:
- provider: s3
bucket: downloads.scylladb.com
region: us-east-1
folder: "gemini/{{.Version}}"

changelog:
sort: asc
filters:
Expand Down

0 comments on commit ab3e873

Please sign in to comment.