mirror of
https://github.com/xiaoqidun/ihash.git
synced 2025-12-13 02:46:18 +08:00
Compare commits
7 Commits
v1.1.2
...
40599fee4e
| Author | SHA1 | Date | |
|---|---|---|---|
| 40599fee4e | |||
| da63656206 | |||
| 64f1667f76 | |||
| 9a4089a05c | |||
| 41b2bfb936 | |||
| 04137a554f | |||
| aa07c086ac |
29
.drone.yml
29
.drone.yml
@@ -1,29 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
node:
|
|
||||||
region: cn
|
|
||||||
steps:
|
|
||||||
- name: generate
|
|
||||||
pull: if-not-exists
|
|
||||||
image: ccr.ccs.tencentyun.com/xiaoqidun/build
|
|
||||||
commands:
|
|
||||||
- build -f build.sh -i ihash.go -o release/ihash
|
|
||||||
- name: build
|
|
||||||
pull: if-not-exists
|
|
||||||
image: ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
|
||||||
commands:
|
|
||||||
- ./build.sh
|
|
||||||
- name: upload
|
|
||||||
pull: if-not-exists
|
|
||||||
image: ccr.ccs.tencentyun.com/xiaoqidun/gocos
|
|
||||||
settings:
|
|
||||||
secret_id:
|
|
||||||
from_secret: cos_secret_id
|
|
||||||
secret_key:
|
|
||||||
from_secret: cos_secret_key
|
|
||||||
bucket_url:
|
|
||||||
from_secret: cos_bucket_url
|
|
||||||
source: release/
|
|
||||||
target: product/ihash
|
|
||||||
strip_prefix: release/
|
|
||||||
28
.gitea/workflows/build.yaml
Normal file
28
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
on: [push, workflow_dispatch]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: cn
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: generate
|
||||||
|
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/build:latest
|
||||||
|
with:
|
||||||
|
args: -f build.sh -i ihash.go -o release/ihash
|
||||||
|
- name: docker goenv
|
||||||
|
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
|
||||||
|
env:
|
||||||
|
GIT_SERVER: ${{ secrets.git_server }}
|
||||||
|
GIT_USER: ${{ secrets.git_user }}
|
||||||
|
GIT_TOKEN: ${{ secrets.git_token }}
|
||||||
|
with:
|
||||||
|
args: bash build.sh
|
||||||
|
- name: upload to cos
|
||||||
|
uses: xiaoqidun/gocos@main
|
||||||
|
with:
|
||||||
|
secret_id: ${{ secrets.cos_secret_id }}
|
||||||
|
secret_key: ${{ secrets.cos_secret_key }}
|
||||||
|
bucket_url: ${{ secrets.cos_bucket_url }}
|
||||||
|
source_path: release
|
||||||
|
target_path: product/ihash
|
||||||
|
strip_prefix: release
|
||||||
6
go.mod
6
go.mod
@@ -1,7 +1,3 @@
|
|||||||
module github.com/xiaoqidun/ihash
|
module github.com/xiaoqidun/ihash
|
||||||
|
|
||||||
go 1.23.1
|
go 1.25.4
|
||||||
|
|
||||||
require golang.org/x/crypto v0.27.0
|
|
||||||
|
|
||||||
require golang.org/x/sys v0.25.0 // indirect
|
|
||||||
|
|||||||
4
go.sum
4
go.sum
@@ -1,4 +0,0 @@
|
|||||||
golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A=
|
|
||||||
golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70=
|
|
||||||
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
|
|
||||||
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
|
||||||
Reference in New Issue
Block a user