From 14d99b069098345b71080d80580f1afae555274f Mon Sep 17 00:00:00 2001 From: chris-sun-star <85611200+chris-sun-star@users.noreply.github.com> Date: Mon, 19 Aug 2024 18:01:01 +0800 Subject: [PATCH] support multiple conditions to publish oceanbase images (#40) --- .github/workflows/release-lts-oceanbase-ce.yml | 3 ++- .github/workflows/release-oceanbase-ce.yml | 3 ++- .github/workflows/release-oceanbase-cloud-native.yml | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-lts-oceanbase-ce.yml b/.github/workflows/release-lts-oceanbase-ce.yml index 003f993..ac41bd1 100644 --- a/.github/workflows/release-lts-oceanbase-ce.yml +++ b/.github/workflows/release-lts-oceanbase-ce.yml @@ -3,7 +3,8 @@ name: release lts oceanbase-ce on: push: tags: - - "lts-oceanbase-*" + - "lts-oceanbase-ce-(\d+\.\d+\.\d+\.\d+)-(\d{18})" + - "lts-oceanbase-(\d+\.\d+\.\d+\.\d+)-(\d{18})" env: tagName: ${{ github.ref_name }} diff --git a/.github/workflows/release-oceanbase-ce.yml b/.github/workflows/release-oceanbase-ce.yml index 5079873..d20b987 100644 --- a/.github/workflows/release-oceanbase-ce.yml +++ b/.github/workflows/release-oceanbase-ce.yml @@ -3,7 +3,8 @@ name: release oceanbase-ce on: push: tags: - - "oceanbase-*" + - "oceanbase-ce-(\d+\.\d+\.\d+\.\d+)-(\d{18})" + - "oceanbase-(\d+\.\d+\.\d+\.\d+)-(\d{18})" env: tagName: ${{ github.ref_name }} diff --git a/.github/workflows/release-oceanbase-cloud-native.yml b/.github/workflows/release-oceanbase-cloud-native.yml index 3f7ac61..16848bd 100644 --- a/.github/workflows/release-oceanbase-cloud-native.yml +++ b/.github/workflows/release-oceanbase-cloud-native.yml @@ -3,8 +3,9 @@ name: release oceanbase-cloud-native on: push: tags: - - "oceanbase-*" - - "lts-oceanbase-*" + - "oceanbase-cloud-native-(\d+\.\d+\.\d+\.\d+)-(\d{18})" + - "oceanbase-(\d+\.\d+\.\d+\.\d+)-(\d{18})" + - "lts-oceanbase-(\d+\.\d+\.\d+\.\d+)-(\d{18})" env: tagName: ${{ github.ref_name }}