mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 16:00:31 -05:00
ci: render
Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/1080699773
This commit is contained in:
parent
6ab4b3a5db
commit
463ec9d09c
2 changed files with 4 additions and 19 deletions
|
|
@ -47,14 +47,6 @@ render-job-templates-yml:
|
||||||
git push -o ci.variable="CI_SCRIPTS_SKIP_PIPELINE=true" "https://oauth2:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" "HEAD:$CI_COMMIT_BRANCH"
|
git push -o ci.variable="CI_SCRIPTS_SKIP_PIPELINE=true" "https://oauth2:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" "HEAD:$CI_COMMIT_BRANCH"
|
||||||
curl --silent --fail --request POST --form token="$CI_JOB_TOKEN" --form ref="$CI_COMMIT_BRANCH" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/trigger/pipeline" >/dev/null
|
curl --silent --fail --request POST --form token="$CI_JOB_TOKEN" --form ref="$CI_COMMIT_BRANCH" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/trigger/pipeline" >/dev/null
|
||||||
# End of commit-and-push-changes.sh
|
# End of commit-and-push-changes.sh
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_BRANCH
|
|
||||||
changes:
|
|
||||||
- .gitlab-ci.yml
|
|
||||||
- scripts/**
|
|
||||||
- templates/**
|
|
||||||
- job-templates.yml
|
|
||||||
- job-templates.tpl.yml
|
|
||||||
render-pipelines-to-branch:
|
render-pipelines-to-branch:
|
||||||
stage: render
|
stage: render
|
||||||
script:
|
script:
|
||||||
|
|
@ -91,5 +83,3 @@ render-pipelines-to-branch:
|
||||||
git push -o ci.variable="CI_SCRIPTS_SKIP_PIPELINE=true" "https://oauth2:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" "HEAD:$CI_COMMIT_BRANCH"
|
git push -o ci.variable="CI_SCRIPTS_SKIP_PIPELINE=true" "https://oauth2:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" "HEAD:$CI_COMMIT_BRANCH"
|
||||||
curl --silent --fail --request POST --form token="$CI_JOB_TOKEN" --form ref="$CI_COMMIT_BRANCH" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/trigger/pipeline" >/dev/null
|
curl --silent --fail --request POST --form token="$CI_JOB_TOKEN" --form ref="$CI_COMMIT_BRANCH" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/trigger/pipeline" >/dev/null
|
||||||
# End of commit-and-push-changes.sh
|
# End of commit-and-push-changes.sh
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_BRANCH =~ /^release*/
|
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,8 @@
|
||||||
.octo_release:
|
.octo_release:
|
||||||
image: registry.durp.info/octopusdeploy/octo:latest
|
image: registry.durp.info/octopusdeploy/octo:latest
|
||||||
script:
|
script:
|
||||||
# Begin of pack.sh
|
# Begin of create_release.sh
|
||||||
- |
|
- |
|
||||||
#Package with octopus
|
#Octopus Create Release
|
||||||
mkdir $CI_PROJECT_DIR/packages
|
dotnet /octo/octo.dll create-release --project="$OCTO_PROJECT_NAME" --releaseNumber=$VERSION --server=https://octopus.internal.durp.info/ --apiKey=$OCTOAPI --packagesFolder=$CI_PROJECT_DIR/packages
|
||||||
for dir in ./output/*/;
|
# End of create_release.sh
|
||||||
do dir=${dir%*/};
|
|
||||||
dir=${dir##*/};
|
|
||||||
dotnet /octo/octo.dll pack --id=$dir --version=$VERSION --outFolder=$CI_PROJECT_DIR/packages --basePath=$CI_PROJECT_DIR/output/$dir;
|
|
||||||
done
|
|
||||||
# End of pack.sh
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue