mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 22:47:41 +00:00
chore(semrel): remove ::set-env usage (#976)
* chore(semrel): remove ::set-env usage * test env handling * test var handling * var translation * try it with semrel * test * correct indenting Co-authored-by: Christian Jakob <christian@caos.ch>
This commit is contained in:
parent
84f0e24c63
commit
62682b2daf
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -65,21 +65,27 @@ jobs:
|
|||||||
- name: Docker Pull short-sha
|
- name: Docker Pull short-sha
|
||||||
run: docker pull $REGISTRY/$GITHUB_REPOSITORY:${{ steps.vars.outputs.sha_short }}
|
run: docker pull $REGISTRY/$GITHUB_REPOSITORY:${{ steps.vars.outputs.sha_short }}
|
||||||
- name: Semantic Release
|
- name: Semantic Release
|
||||||
|
id: semantic
|
||||||
uses: cycjimmy/semantic-release-action@v2
|
uses: cycjimmy/semantic-release-action@v2
|
||||||
with:
|
with:
|
||||||
dry_run: false
|
dry_run: false
|
||||||
semantic_version: 17.0.4
|
semantic_version: 17.0.4
|
||||||
extra_plugins: |
|
- name: Do something when a new release published
|
||||||
@semantic-release/exec@5.0.0
|
if: steps.semantic.outputs.new_release_published == 'true'
|
||||||
|
run: |
|
||||||
|
echo ${{ steps.semantic.outputs.new_release_version }}
|
||||||
|
echo ${{ steps.semantic.outputs.new_release_major_version }}
|
||||||
|
echo ${{ steps.semantic.outputs.new_release_minor_version }}
|
||||||
|
echo ${{ steps.semantic.outputs.new_release_patch_version }}
|
||||||
- name: Docker Tag Version
|
- name: Docker Tag Version
|
||||||
run: docker tag $REGISTRY/$GITHUB_REPOSITORY:${{ steps.vars.outputs.sha_short }} $REGISTRY/$GITHUB_REPOSITORY:$CAOS_NEXT_VERSION
|
run: docker tag $REGISTRY/$GITHUB_REPOSITORY:${{ steps.vars.outputs.sha_short }} $REGISTRY/$GITHUB_REPOSITORY:${{ steps.semantic.outputs.new_release_version }}
|
||||||
if: env.CAOS_NEXT_VERSION != ''
|
if: steps.semantic.outputs.new_release_published == 'true'
|
||||||
- name: Docker Tag Latest
|
- name: Docker Tag Latest
|
||||||
run: docker tag $REGISTRY/$GITHUB_REPOSITORY:${{ steps.vars.outputs.sha_short }} $REGISTRY/$GITHUB_REPOSITORY:latest
|
run: docker tag $REGISTRY/$GITHUB_REPOSITORY:${{ steps.vars.outputs.sha_short }} $REGISTRY/$GITHUB_REPOSITORY:latest
|
||||||
if: env.CAOS_NEXT_VERSION != ''
|
if: steps.semantic.outputs.new_release_published == 'true'
|
||||||
- name: Docker Push Version
|
- name: Docker Push Version
|
||||||
run: docker push $REGISTRY/$GITHUB_REPOSITORY:$CAOS_NEXT_VERSION
|
run: docker push $REGISTRY/$GITHUB_REPOSITORY:${{ steps.semantic.outputs.new_release_version }}
|
||||||
if: env.CAOS_NEXT_VERSION != ''
|
if: steps.semantic.outputs.new_release_published == 'true'
|
||||||
- name: Docker Push Latest
|
- name: Docker Push Latest
|
||||||
run: docker push $REGISTRY/$GITHUB_REPOSITORY:latest
|
run: docker push $REGISTRY/$GITHUB_REPOSITORY:latest
|
||||||
if: env.CAOS_NEXT_VERSION != ''
|
if: steps.semantic.outputs.new_release_published == 'true'
|
||||||
|
@ -3,9 +3,6 @@ module.exports = {
|
|||||||
plugins: [
|
plugins: [
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
"@semantic-release/github",
|
"@semantic-release/github"
|
||||||
["@semantic-release/exec", {
|
|
||||||
"publishCmd": "echo '::set-env name=CAOS_NEXT_VERSION::${nextRelease.version}'"
|
|
||||||
}],
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user