fix(ci): refactor, add secrets
This commit is contained in:
1 parent
c30fb61d6f
commit
c294ce250c
2 files changed
+4
-27
No files matched your search
@@ -4,7 +4,6 @@ when:
|
|||||||
path:
|
path:
|
||||||
include:
|
include:
|
||||||
- 'helm/**'
|
- 'helm/**'
|
||||||
- '.woodpecker/**'
|
|
||||||
- event: tag
|
- event: tag
|
||||||
ref: "refs/tags/v*"
|
ref: "refs/tags/v*"
|
||||||
|
|
||||||
@@ -13,9 +12,9 @@ steps:
|
|||||||
image: node:24-alpine
|
image: node:24-alpine
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: RELEASE_TOKEN
|
||||||
GITEA_USERNAME:
|
GITEA_USERNAME:
|
||||||
from_secret: gitea_username
|
from_secret: RELEASE_USERNAME
|
||||||
GITEA_URL: ${CI_FORGE_URL}
|
GITEA_URL: ${CI_FORGE_URL}
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache git
|
- apk add --no-cache git
|
||||||
@@ -40,9 +39,9 @@ steps:
|
|||||||
image: quay.io/helmpack/chart-testing:v3.11.0
|
image: quay.io/helmpack/chart-testing:v3.11.0
|
||||||
environment:
|
environment:
|
||||||
GITEA_USERNAME:
|
GITEA_USERNAME:
|
||||||
from_secret: gitea_username
|
from_secret: RELEASE_USERNAME
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: RELEASE_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
for pkg in .cr-release-packages/*.tgz; do
|
for pkg in .cr-release-packages/*.tgz; do
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: release
|
|
||||||
image: node:20-alpine
|
|
||||||
environment:
|
|
||||||
GITEA_TOKEN:
|
|
||||||
from_secret: gitea_token
|
|
||||||
GITEA_USERNAME:
|
|
||||||
from_secret: gitea_username
|
|
||||||
GITEA_URL: ${CI_FORGE_URL}
|
|
||||||
commands:
|
|
||||||
- apk add --no-cache git
|
|
||||||
- git config --global credential.helper store
|
|
||||||
- echo "https://$${GITEA_USERNAME}:$${GITEA_TOKEN}@git.barbiric.io" > ~/.git-credentials
|
|
||||||
- npm install -g semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/git @forge-for-gitea/semantic-release-gitea
|
|
||||||
- npx semantic-release
|
|
||||||
when:
|
|
||||||
event: push
|
|
||||||
branch: main
|
|
||||||
Reference in new issue
Block a user