ci: render
Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/1080619092
This commit is contained in:
13
jobs/gitlab.yml
Normal file
13
jobs/gitlab.yml
Normal 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
13
jobs/nuget.yml
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user