CGGItemSets/.woodpecker/.linux.yml

33 lines
1.2 KiB
YAML
Raw Normal View History

2023-11-29 08:10:57 +01:00
steps:
2022-11-16 21:34:34 +01:00
build:
image: rust:alpine
pull: true
commands:
2024-04-29 17:26:36 +02:00
- apk add --no-cache musl-dev
- rustup component add clippy
- cargo test
- cargo clippy
- cargo build --release
- strip target/release/cggitem_sets
2024-01-06 09:32:37 +01:00
when:
2024-06-24 17:42:14 +02:00
# path:
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
- event: [manual, tag]
- event: push
branch: renovate/*
- event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
2022-11-16 21:34:34 +01:00
deploy:
2024-06-24 17:42:14 +02:00
image: alpine:3.20
2022-11-16 21:34:34 +01:00
pull: true
commands:
2024-04-29 17:26:36 +02:00
- 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
2022-11-16 21:34:34 +01:00
secrets: [registry_username, registry_password]
when:
2024-04-29 17:26:36 +02:00
path:
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
event: [push, manual, tag]
2022-11-16 21:34:34 +01:00
branch:
2024-06-24 17:42:14 +02:00
- ${CI_REPO_DEFAULT_BRANCH}