You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by pi...@apache.org on 2025/04/16 19:51:06 UTC
(iggy) branch release/server-0.4.300 created (now c3390dba)
This is an automated email from the ASF dual-hosted git repository.
piotr pushed a change to branch release/server-0.4.300
in repository https://gitbox.apache.org/repos/asf/iggy.git
at c3390dba fix(ci): fix publish server script tag validation (#1692)
This branch includes the following new commits:
new ac5cc413 fix(ci): fix release when pushing the tags (#1691)
new c3390dba fix(ci): fix publish server script tag validation (#1692)
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(iggy) 02/02: fix(ci): fix publish server script tag validation (#1692)
Posted by pi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch release/server-0.4.300
in repository https://gitbox.apache.org/repos/asf/iggy.git
commit c3390dbacb0d7d5fc874c2346ceb977e0be71eb9
Author: Piotr Gankiewicz <pi...@gmail.com>
AuthorDate: Wed Apr 16 20:29:46 2025 +0200
fix(ci): fix publish server script tag validation (#1692)
---
.github/workflows/publish_server.yml | 2 +-
.github/workflows/release_cli.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/publish_server.yml b/.github/workflows/publish_server.yml
index 26be9cdb..8d9af206 100644
--- a/.github/workflows/publish_server.yml
+++ b/.github/workflows/publish_server.yml
@@ -74,7 +74,7 @@ jobs:
- name: Check if version from Cargo.toml is the same as the tag
id: check_git_tag
run: |
- if [[ "iggy-${{ steps.extract_version.outputs.server_version }}" == "${{ steps.extract_tag.outputs.tag_name }}" ]];
+ if [[ "server-${{ steps.extract_version.outputs.server_version }}" == "${{ steps.extract_tag.outputs.tag_name }}" ]];
then
echo "::notice ::Tag ${{ steps.extract_tag.outputs.tag_name }} matches the version in Cargo.toml"
echo "tag_matches=true" >> "$GITHUB_OUTPUT"
diff --git a/.github/workflows/release_cli.yml b/.github/workflows/release_cli.yml
index dace1705..0bd20285 100644
--- a/.github/workflows/release_cli.yml
+++ b/.github/workflows/release_cli.yml
@@ -91,7 +91,7 @@ jobs:
tool: cross
- name: Build ${{ matrix.platform.target }} release binary
- run: cross +stable build --verbose --release --target ${{ matrix.platform.target }}
+ run: cross +stable build --verbose --release --target ${{ matrix.platform.target }} -p iggy
- name: Collect ${{ matrix.platform.target }} executable
run: |
(iggy) 01/02: fix(ci): fix release when pushing the tags (#1691)
Posted by pi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch release/server-0.4.300
in repository https://gitbox.apache.org/repos/asf/iggy.git
commit ac5cc413f12dc224c6a12a8b9d688b1e5313a112
Author: Piotr Gankiewicz <pi...@gmail.com>
AuthorDate: Wed Apr 16 17:59:58 2025 +0200
fix(ci): fix release when pushing the tags (#1691)
---
.github/workflows/publish_cli.yml | 20 +++++++++++++++++++-
.github/workflows/publish_sdk.yml | 20 +++++++++++++++++++-
.github/workflows/publish_server.yml | 20 +++++++++++++++++++-
3 files changed, 57 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/publish_cli.yml b/.github/workflows/publish_cli.yml
index 3e4cacca..cbf5d1df 100644
--- a/.github/workflows/publish_cli.yml
+++ b/.github/workflows/publish_cli.yml
@@ -19,14 +19,32 @@ name: publish_cli
on:
push:
tags:
- - 'iggy-cli-[0-9]+.[0-9]+.[0-9]+'
+ - 'iggy-cli-*'
env:
GITHUB_TOKEN: ${{ github.token }}
CARGO_TERM_COLOR: always
jobs:
+ validate:
+ if: startsWith(github.ref, 'refs/tags/iggy-cli-')
+ runs-on: ubuntu-latest
+ steps:
+ - name: Extract tag name
+ id: extract
+ run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
+
+ - name: Validate tag format
+ run: |
+ TAG=${TAG}
+ if [[ ! "$TAG" =~ ^iggy-cli-([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$ ]]; then
+ echo "Tag $TAG does not match strict semver format (iggy-cli-X.Y.Z where 0 <= X,Y,Z <= 999)"
+ exit 1
+ fi
+ echo "Valid tag: $TAG"
+
tag:
+ needs: validate
runs-on: ubuntu-latest
steps:
- name: Checkout code
diff --git a/.github/workflows/publish_sdk.yml b/.github/workflows/publish_sdk.yml
index 1da6324a..72acc4a4 100644
--- a/.github/workflows/publish_sdk.yml
+++ b/.github/workflows/publish_sdk.yml
@@ -19,14 +19,32 @@ name: publish_sdk
on:
push:
tags:
- - 'iggy-[0-9]+.[0-9]+.[0-9]+'
+ - 'iggy-*'
env:
GITHUB_TOKEN: ${{ github.token }}
CARGO_TERM_COLOR: always
jobs:
+ validate:
+ if: startsWith(github.ref, 'refs/tags/iggy-')
+ runs-on: ubuntu-latest
+ steps:
+ - name: Extract tag name
+ id: extract
+ run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
+
+ - name: Validate tag format
+ run: |
+ TAG=${TAG}
+ if [[ ! "$TAG" =~ ^iggy-([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$ ]]; then
+ echo "Tag $TAG does not match strict semver format (iggy-X.Y.Z where 0 <= X,Y,Z <= 999)"
+ exit 1
+ fi
+ echo "Valid tag: $TAG"
+
tag:
+ needs: validate
runs-on: ubuntu-latest
steps:
- name: Checkout code
diff --git a/.github/workflows/publish_server.yml b/.github/workflows/publish_server.yml
index 30bd8317..26be9cdb 100644
--- a/.github/workflows/publish_server.yml
+++ b/.github/workflows/publish_server.yml
@@ -20,7 +20,7 @@ name: publish_server
on:
push:
tags:
- - 'server-[0-9]+.[0-9]+.[0-9]+'
+ - 'server-*'
env:
DOCKERHUB_REGISTRY_NAME: apache/iggy
@@ -31,7 +31,25 @@ env:
IGGY_CI_BUILD: true
jobs:
+ validate:
+ if: startsWith(github.ref, 'refs/tags/server-')
+ runs-on: ubuntu-latest
+ steps:
+ - name: Extract tag name
+ id: extract
+ run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
+
+ - name: Validate tag format
+ run: |
+ TAG=${TAG}
+ if [[ ! "$TAG" =~ ^server-([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$ ]]; then
+ echo "Tag $TAG does not match strict semver format (server-X.Y.Z where 0 <= X,Y,Z <= 999)"
+ exit 1
+ fi
+ echo "Valid tag: $TAG"
+
tag:
+ needs: validate
runs-on: ubuntu-latest
steps:
- name: Checkout code