Skip to content

Commit

Permalink
feat: release branch
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
  • Loading branch information
cubxxw committed Jul 18, 2023
1 parent aba547f commit bb317f5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
21 changes: 21 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,27 @@ changelog:
# - linux/amd64
# - linux/arm64

# .goreleaser.yaml
milestones:
# You can have multiple milestone configs
-
# Repository for the milestone
# Default is extracted from the origin remote URL
repo:
owner: user
name: repo

# Whether to close the milestone
close: true

# Fail release on errors, such as missing milestone.
fail_on_error: false

# Name of the milestone
#
# Default: '{{ .Tag }}'
name_template: "Current Release"

checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256
Expand Down
6 changes: 3 additions & 3 deletions cmd/syncer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/joho/godotenv"
"github.com/kubecub/github-label-syncer/pkg/github"
"go.uber.org/multierr"
// "go.uber.org/multierr"
)

func main() {
Expand Down Expand Up @@ -69,12 +69,12 @@ func run(ctx context.Context) error {

s := strings.Split(r, "/")
if len(s) != 2 {
err = multierr.Append(err, fmt.Errorf("invalid repository: %s", repository))
// err = multierr.Append(err, fmt.Errorf("invalid repository: %s", repository))
}
owner, repo := s[0], s[1]

if err := client.SyncLabels(ctx, owner, repo, labels, prune); err != nil {
err = multierr.Append(err, fmt.Errorf("unable to sync labels: %w", err))
// err = multierr.Append(err, fmt.Errorf("unable to sync labels: %w", err))
}
}

Expand Down
4 changes: 2 additions & 2 deletions deploy/exporter/Dockerfile.exporter
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV GOPROXY=https://goproxy.cn

COPY . /app/

RUN make build
RUN go build -o /app/_output/bin/exporter /app/cmd/exporter/main.go

# 设置容器启动命令
CMD ["/app/_output/bin/platforms/linux/amd64/exporter --help"]
CMD ["/app/_output/bin/exporter --help"]
4 changes: 2 additions & 2 deletions deploy/syncer/Dockerfile.syncer
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV GOPROXY=https://goproxy.cn

COPY . /app/

RUN make build
RUN go build -o /app/_output/bin/syncer /app/cmd/syncer/main.go

# 设置容器启动命令
CMD ["/app/_output/bin/platforms/linux/amd64/syncer --help"]
CMD ["/app/_output/bin/syncer --help"]

0 comments on commit bb317f5

Please sign in to comment.