mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 16:47:32 +00:00
chore: avoid latest on maintenance releases (#7702)
* chore: avoid latest on maintenance releases * update semantic --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
version:
|
version:
|
||||||
uses: ./.github/workflows/version.yml
|
uses: ./.github/workflows/version.yml
|
||||||
with:
|
with:
|
||||||
semantic_version: "19.0.2"
|
semantic_version: "23.0.7"
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
@@ -94,6 +94,6 @@ jobs:
|
|||||||
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
|
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
with:
|
with:
|
||||||
build_image_name: ${{ needs.container.outputs.build_image }}
|
build_image_name: ${{ needs.container.outputs.build_image }}
|
||||||
semantic_version: "19.0.2"
|
semantic_version: "23.0.7"
|
||||||
image_name: "ghcr.io/zitadel/zitadel"
|
image_name: "ghcr.io/zitadel/zitadel"
|
||||||
google_image_name: "europe-docker.pkg.dev/zitadel-common/zitadel-repo/zitadel"
|
google_image_name: "europe-docker.pkg.dev/zitadel-common/zitadel-repo/zitadel"
|
||||||
|
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@@ -33,6 +33,33 @@ jobs:
|
|||||||
semantic_version: ${{ inputs.semantic_version }}
|
semantic_version: ${{ inputs.semantic_version }}
|
||||||
dry_run: false
|
dry_run: false
|
||||||
|
|
||||||
|
# TODO: remove the publish job and publish releases directly with the @semantic-release/github plugin (remove draftRelease: true)
|
||||||
|
# as soon as it supports configuring the create release payload property make_latest to "legacy"
|
||||||
|
# https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#create-a-release--parameters
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
needs: [ version ]
|
||||||
|
steps:
|
||||||
|
- id: get_release
|
||||||
|
uses: cardinalby/git-get-release-action@v1
|
||||||
|
with:
|
||||||
|
commitSha: ${{ github.sha }}
|
||||||
|
draft: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish Release
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
github.rest.repos.updateRelease({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
release_id: ${{ steps.get_release.outputs.id }},
|
||||||
|
draft: false,
|
||||||
|
make_latest: "legacy"
|
||||||
|
});
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: [ version ]
|
needs: [ version ]
|
||||||
|
1
.github/workflows/version.yml
vendored
1
.github/workflows/version.yml
vendored
@@ -43,6 +43,7 @@ jobs:
|
|||||||
semantic_version: ${{ inputs.semantic_version }}
|
semantic_version: ${{ inputs.semantic_version }}
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
@semantic-release/exec@6.0.3
|
@semantic-release/exec@6.0.3
|
||||||
|
@semantic-release/github@10.0.2
|
||||||
-
|
-
|
||||||
name: output
|
name: output
|
||||||
id: output
|
id: output
|
||||||
|
@@ -9,6 +9,7 @@ module.exports = {
|
|||||||
[
|
[
|
||||||
"@semantic-release/github",
|
"@semantic-release/github",
|
||||||
{
|
{
|
||||||
|
draftRelease: true,
|
||||||
assets: [
|
assets: [
|
||||||
{
|
{
|
||||||
path: ".artifacts/zitadel-linux-amd64/zitadel-linux-amd64.tar.gz",
|
path: ".artifacts/zitadel-linux-amd64/zitadel-linux-amd64.tar.gz",
|
||||||
|
Reference in New Issue
Block a user