woodpecker_gitea_publisher_golang

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

ci

go mod version GoDoc goreportcard

GitHub license codecov GitHub latest SemVer tag) GitHub release)

for what

  • this project used to woodpecker plugin

Contributing

Contributor Covenant GitHub contributors

We welcome community contributions to this project.

Please read Contributor Guide for more information on how to get started.

请阅读有关 贡献者指南 以获取更多如何入门的信息

Features

  • push to gitea Go Package Registry
  • use TempDir to generate go mod zip file
  • support dry-run mode
  • auto get gitea base URL by CI_FORGE_URL
  • support Monorepo
    • use settings.gitea-publish-golang-path-go to publish dir go.mod one by one
  • out publish info json file default dist/go-mod-upload.json
    • use settings.gitea-publish-golang-update-result-root-path to change out root path, default dist
    • use settings.gitea-publish-golang-update-result-file-name to change out file name, default go-mod-upload.json
  • more perfect test case coverage
  • more perfect benchmark case

usage

  • use this template, replace list below and add usage

    • github.com/woodpecker-kit/woodpecker-gitea-publisher-golang to your package name
    • woodpecker-kit to your owner name
    • woodpecker-gitea-publisher-golang to your project name
  • use github action for this workflow push to docker hub, must add

    • variables ENV_DOCKERHUB_OWNER user of docker hub
    • variables ENV_DOCKERHUB_REPO_NAME repo name of docker hub
    • secrets DOCKERHUB_TOKEN token of docker hub user from hub.docker
  • check docker-bake.hcl config, change to your docker image

  • if you use wd_steps_transfer just add .woodpecker_kit.steps.transfer at git ignore

  • change code start with // change or remove

workflow usage

Notice

  • want dev this project, see dev doc

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PackageJson string

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
cli
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL