Skip to content
Snippets Groups Projects
Commit 1fddd15c authored by Anders Lindh Olsson's avatar Anders Lindh Olsson :8ball:
Browse files

Manually publish jobs from main

parent ad1deb30
No related branches found
No related tags found
1 merge request!200CE-3445: Change package deployment procedure
......@@ -96,7 +96,7 @@ deploy-package:
- jf rt npmp
- echo "PACKAGE_VERSION=$(npm pkg get version | tr -d '"')" >> package_version.env
rules:
- if: "($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH) && $CI_COMMIT_TAG"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
artifacts:
reports:
dotenv: package_version.env
......@@ -104,6 +104,7 @@ deploy-package:
deploy-package-devel:
extends: .deploy
script:
# Update the package version to include the commit SHA
- 'sed -i "s/\"version\": *\"\([^\"]*\)\"/\"version\": \"\1-${CI_COMMIT_SHORT_SHA}\"/" package.json'
- jf rt npmp
when: manual
......@@ -115,7 +116,8 @@ release:
- job: deploy-package
artifacts: true
rules:
- if: "($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH) && $CI_COMMIT_TAG"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual
script:
- echo "running release_job for $PACKAGE_VERSION"
release:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment