Skip to content

Commit cb83811

Browse files
authored
Merge pull request #38 from jianxiaoguo/main
chore(woodpecker): use woodpecker ci build status and variable
2 parents 430b9d2 + 9c7c11d commit cb83811

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

.woodpecker/publish-charts.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ pipeline:
77
- name: publish-charts
88
image: bash
99
commands:
10+
- export VERSION=$(sed 's#v##' <<< $CI_COMMIT_TAG)
11+
- export IMAGE_TAG=$([ ! -z $CI_COMMIT_TAG ] && echo \"$VERSION\" || echo \"canary\")
1012
- pip install -r requirements.txt
11-
- python3 _scripts/dependency_update.py "oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)" "charts/workflow/Chart.yaml"
13+
- python3 _scripts/dependency_update.py "oci://$DRYCC_REGISTRY/$([ -z $CI_COMMIT_TAG ] && echo charts-testing || echo charts)" "charts/workflow/Chart.yaml"
1214
- helm dependency update charts/workflow
13-
- helm package charts/workflow -u --version $([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG##v})
15+
- helm package -u charts/$${CI_REPO_NAME} --version $([ -z $CI_COMMIT_TAG ] && echo 1.0.0 || echo $VERSION)
1416
- echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin
15-
- helm push workflow-$([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG##v}).tgz oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)
17+
- helm push $${CI_REPO_NAME}-$([ -z $CI_COMMIT_TAG ] && echo 1.0.0 || echo $VERSION).tgz oci://$DRYCC_REGISTRY/$([ -z $CI_COMMIT_TAG ] && echo charts-testing || echo charts)
1618
- bash _scripts/generate_cache.sh
1719
secrets:
1820
- drycc_registry

.woodpecker/publish-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ pipeline:
2222
commands:
2323
- chown -R root:root _build/html
2424
- docker run --rm
25-
-e DRONE_COMMIT_AUTHOR="$DRONE_COMMIT_AUTHOR"
26-
-e DRONE_COMMIT_AUTHOR_EMAIL="$DRONE_COMMIT_AUTHOR_EMAIL"
25+
-e DRONE_COMMIT_AUTHOR="$CI_COMMIT_AUTHOR"
26+
-e DRONE_COMMIT_AUTHOR_EMAIL="$CI_COMMIT_AUTHOR_EMAIL"
2727
-e PLUGIN_SSH_KEY="$SSH_DEPLOY_KEY"
2828
-e PLUGIN_BRANCH=main
2929
-e PLUGIN_REMOTE=git@github.com:drycc/www.drycc.cc.git

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This project has been forked from [Deis](https://github.com/deis/deis) since 201
3030
not compatible with each other.
3131

3232
# Working on Documentation
33-
[![Build Status](https://drone.drycc.cc/api/badges/drycc/workflow/status.svg)](https://drone.drycc.cc/drycc/workflow)
33+
[![Build Status](https://woodpecker.drycc.cc/api/badges/drycc/workflow/status.svg)](https://woodpecker.drycc.cc/drycc/workflow)
3434
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fdrycc%2Fworkflow.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fdrycc%2Fworkflow?ref=badge_shield)
3535

3636
The Drycc project welcomes contributions from all developers. The high level process for development matches many other open source projects. See below for an outline.

_scripts/generate_cache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ fi
3636

3737
for tar in `ls $tmp | grep .tgz`
3838
do
39-
helm push $tar oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)
39+
helm push $tar oci://$DRYCC_REGISTRY/$([ -z $CI_COMMIT_TAG ] && echo charts-testing || echo charts)
4040
done

0 commit comments

Comments
 (0)