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 committed Sep 16, 2024
1 parent 6f91eb7 commit d5d19f5
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 5 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: goreleaser

on:
pull_request:
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 QEMU
uses: docker/setup-qemu-action@v3

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

- name: Login to CR
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 }}
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ checksum:
snapshot:
name_template: "{{ .Tag }}-next"

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

changelog:
sort: asc
Expand Down

0 comments on commit d5d19f5

Please sign in to comment.