Skip to content

Commit

Permalink
Revert "ci(gitlab): only release on a new tag created"
Browse files Browse the repository at this point in the history
This reverts commit 5aedd9a.
  • Loading branch information
lanathlor committed Dec 30, 2024
1 parent 5aedd9a commit 2118c9b
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ clearndr:
- docker push ${CI_REGISTRY_IMAGE}/clearndr:${CI_COMMIT_SHORT_SHA}
- docker push ${CI_REGISTRY_IMAGE}/clearndr:${CI_COMMIT_REF_NAME}

release-to-github:
stage: release
image: bitnami/git
rules:
- if: '$CI_COMMIT_REF_NAME == "latest"'
when: on_success
script:
- git config --global user.email $GITLAB_USER_EMAIL
- git config --global user.name $GITLAB_USER_NAME
- git remote add github "https://$GITHUB_USERNAME:[email protected]/StamusNetworks/stamusctl-templates.git"
- git push github HEAD:next


create-tags:
stage: release
Expand All @@ -108,18 +120,4 @@ create release:
- echo "running release_job"
release:
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'

release-to-github:
stage: release
image: bitnami/git
needs:
- create-tags
rules:
- if: '$CI_COMMIT_REF_NAME == "latest"'
when: on_success
script:
- git config --global user.email $GITLAB_USER_EMAIL
- git config --global user.name $GITLAB_USER_NAME
- git remote add github "https://$GITHUB_USERNAME:[email protected]/StamusNetworks/stamusctl-templates.git"
- git push github HEAD:next
description: '$CI_COMMIT_TAG'

0 comments on commit 2118c9b

Please sign in to comment.