mirror of
https://github.com/xiaoqidun/ihash.git
synced 2025-12-13 18:56:19 +08:00
Compare commits
3 Commits
v1.1.4
...
64f1667f76
| Author | SHA1 | Date | |
|---|---|---|---|
| 64f1667f76 | |||
| 9a4089a05c | |||
| 41b2bfb936 |
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: docker://ccr.ccs.tencentyun.com/xiaoqidun/gocos
|
||||
env:
|
||||
PLUGIN_SECRET_ID: ${{secrets.cos_secret_id}}
|
||||
PLUGIN_SECRET_KEY: ${{secrets.cos_secret_key}}
|
||||
PLUGIN_BUCKET_URL: ${{secrets.cos_bucket_url}}
|
||||
PLUGIN_SOURCE: release/
|
||||
PLUGIN_TARGET: product/ihash
|
||||
PLUGIN_STRIP_PREFIX: release/
|
||||
Reference in New Issue
Block a user