ci: render

Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/1080619092
This commit is contained in:
2023-11-21 18:49:34 +00:00
parent 32bf3c878d
commit 91a91cd876
4 changed files with 36 additions and 4 deletions

13
jobs/gitlab.yml Normal file
View File

@@ -0,0 +1,13 @@
.gitlab-move-files:
image: registry.durp.info/debian:latest
script:
# Begin of movefiles.sh
- |
#move files to output
mkdir $CI_PROJECT_DIR/output
IFS=";" read -a names <<< $PROJECT_NAME
for i in $names;
do mkdir $CI_PROJECT_DIR/output/$i;
cp -r $CI_PROJECT_DIR/$i $CI_PROJECT_DIR/output/;
done
# End of movefiles.sh

13
jobs/nuget.yml Normal file
View File

@@ -0,0 +1,13 @@
.nuget_push:
image: registry.durp.info/dotnet/core/sdk:latest
script:
# Begin of push.sh
- |
#Nuget Push
IFS=";" read -a names <<< $PROJECT_NAME
dotnet nuget add source "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/nuget/index.json" --name gitlab --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text
count=0
for i in ${names[@]};
do dotnet nuget push "${CI_PROJECT_DIR}/packages/$i.$VERSION.nupkg" --source gitlab;
done
# End of push.sh

View File

@@ -1,9 +1,15 @@
.octo_package:
image: registry.durp.info/octopusdeploy/octo:latest
script:
# Begin of octo-pack.sh
# Begin of pack.sh
- "#Package with octopus\nmkdir $CI_PROJECT_DIR/packages\nIFS=\";\"\ncount=0\nfor i in $projectname; \n do dotnet /octo/octo.dll pack --id=$i --version=$VERSION --outFolder=$CI_PROJECT_DIR/packages --basePath=$WORKDIR/$i;\n count=$(($count+1));\n done\n"
# End of octo-pack.sh
# End of pack.sh
artifacts:
paths:
- $CI_PROJECT_DIR/packages
.octo_release:
image: registry.durp.info/octopusdeploy/octo:latest
script:
# Begin of pack.sh
- "#Package with octopus\nmkdir $CI_PROJECT_DIR/packages\nIFS=\";\"\ncount=0\nfor i in $projectname; \n do dotnet /octo/octo.dll pack --id=$i --version=$VERSION --outFolder=$CI_PROJECT_DIR/packages --basePath=$WORKDIR/$i;\n count=$(($count+1));\n done\n"
# End of pack.sh

View File

@@ -3,7 +3,7 @@
variables:
GIT_DEPTH: "0"
script:
# Begin of version-number.sh
# Begin of version.sh
- |
#Check for configuration
echo "mode: ContinuousDeployment
@@ -37,7 +37,7 @@
version=$(/tools/dotnet-gitversion /showvariable NuGetVersionV2)
echo "VERSION=$version" >> version.env
cat version.env
# End of version-number.sh
# End of version.sh
artifacts:
reports:
dotenv: version.env