Update 3 files

- /scripts/octo-pack.sh
- /templates/octopus.tpl.yml
- /pipelines/octo-templates.yml
This commit is contained in:
2023-08-13 15:14:21 +00:00
parent 70013b9c65
commit ffda7963f9
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
stages:
- package
- publish
include:
- project: 'developerdurp/yml'
ref: main
file:
- 'jobs/version.yml'
- 'jobs/octopus.yml'
version:
extends: .version
stage: .pre
rules:
- if: $CI_COMMIT_REF_NAME == 'main'
pack:
variables:
WORKDIR: $CI_PROJECT_DIR
extends: .octo_package
stage: package
rules:
- if: $CI_COMMIT_REF_NAME == 'main'

10
scripts/octo-pack.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
#%%MULTILINE_YAML_START
#Package with octopus
mkdir $CI_PROJECT_DIR/packages
IFS=";"
count=0
for i in $projectname;
do dotnet /octo/octo.dll pack --id=$i --version=$VERSION --outFolder=$CI_PROJECT_DIR/packages --basePath=$WORKDIR/$i;
count=$(($count+1));
done

View File

@@ -0,0 +1,7 @@
.octo_package:
image: registry.durp.info/octopusdeploy/octo:latest
script:
- ./scripts/octo-pack.sh
artifacts:
paths:
- $CI_PROJECT_DIR/packages