Skip to content

Commit

Permalink
fix: publish dockerhub description on release
Browse files Browse the repository at this point in the history
  • Loading branch information
acouvreur committed Oct 22, 2024
1 parent d16fee5 commit f5e0fba
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 97 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,20 @@ on:
pull_request:

jobs:

main:
name: Main Process
build:
name: Build application
runs-on: ubuntu-latest
env:
GO_VERSION: stable
CGO_ENABLED: 0

steps:

# https://github.com/marketplace/actions/checkout
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0

# https://github.com/marketplace/actions/setup-go-environment
- name: Set up Go ${{ env.GO_VERSION }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Check and get dependencies
run: |
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
go-version: stable

- name: Make
run: make build
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/dockerhub-description.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: golangci-lint

on:
pull_request:

Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/goreleaser.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Release"

on:
push:
branches:
Expand Down Expand Up @@ -67,3 +68,10 @@ jobs:
run: |
npm i -G semantic-release@~23.0.0 @semantic-release/exec@~6.0.3 @semantic-release/git@~10.0.1
npx semantic-release
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
short-description: ${{ github.event.repository.description }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
IMAGE_NAME := sablierapp/mimic

build:
goreleaser build --single-target --clean --snapshot
CGO_ENABLED=0 go build -a --trimpath --installsuffix cgo --ldflags="-s" -o mimic

check:
golangci-lint run
Expand Down

0 comments on commit f5e0fba

Please sign in to comment.