chore(ci): secrets
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/linux Pipeline was successful
ci/woodpecker/push/mingw Pipeline was successful

This commit is contained in:
nyyu 2024-12-14 09:54:41 +01:00
parent 2ee6a97a4f
commit 242dbffb49
3 changed files with 58 additions and 46 deletions

View file

@ -23,7 +23,11 @@ steps:
commands:
- apk add --no-cache curl
- curl -f -i -u $REGISTRY_USERNAME:$REGISTRY_PASSWORD -X POST 'https://nexus.nyyu.dev/service/rest/v1/components?repository=maven-releases' -F maven2.groupId=dev.nyyu -F maven2.artifactId=cggitem_sets -F maven2.version=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml) -F maven2.asset1=@target/release/cggitem_sets -F maven2.asset1.extension=elf -F maven2.asset1.classifier=linux-x64
secrets: [registry_username, registry_password]
environment:
REGISTRY_USERNAME:
from_secret: registry_username
REGISTRY_PASSWORD:
from_secret: registry_password
when:
path:
include: [ '.woodpecker/*.yml', 'src/*', 'Cargo*' ]

View file

@ -26,7 +26,11 @@ steps:
commands:
- apk add --no-cache curl
- curl -f -i -u $REGISTRY_USERNAME:$REGISTRY_PASSWORD -X POST 'https://nexus.nyyu.dev/service/rest/v1/components?repository=maven-releases' -F maven2.groupId=dev.nyyu -F maven2.artifactId=cggitem_sets -F maven2.version=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml) -F maven2.asset1=@target/x86_64-pc-windows-gnu/release/cggitem_sets.exe -F maven2.asset1.extension=exe -F maven2.asset1.classifier=mingw-x64
secrets: [registry_username, registry_password]
environment:
REGISTRY_USERNAME:
from_secret: registry_username
REGISTRY_PASSWORD:
from_secret: registry_password
when:
path:
include: [ '.woodpecker/*.yml', 'src/*', 'Cargo*' ]

View file

@ -32,7 +32,11 @@ steps:
pull: true
commands:
- curl -s https://git.nyyu.dev/nyyu/ci-scripts/raw/branch/main/sonar.sh | bash
secrets: [ sonar_host_url, sonar_token ]
environment:
SONAR_HOST_URL:
from_secret: sonar_host_url
SONAR_TOKEN:
from_secret: sonar_token
when:
# path:
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']