From 9941ef83f281ab9a2416a14580dd52417b0106fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Tue, 24 Sep 2024 08:30:46 +0200 Subject: [PATCH] ci: add AxoSyslog stable image workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: László Várady --- .github/workflows/axosyslog-image-stable.yml | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/axosyslog-image-stable.yml diff --git a/.github/workflows/axosyslog-image-stable.yml b/.github/workflows/axosyslog-image-stable.yml new file mode 100644 index 000000000..1b27bac49 --- /dev/null +++ b/.github/workflows/axosyslog-image-stable.yml @@ -0,0 +1,24 @@ +name: AxoSyslog stable image + +permissions: write-all + +on: + workflow_dispatch: + +jobs: + pre-check: + runs-on: ubuntu-latest + if: github.repository_owner == 'axoflow' + steps: + - name: Validate tag + run: | + if [[ ! "${{ github.ref }}" =~ ^refs/tags/axosyslog-[0-9]+ ]]; then + echo "Please start the workflow on a 'axosyslog-[0-9]+*' tag" + false + fi + + publish-image: + uses: ./.github/workflows/axosyslog-docker.yml + needs: pre-check + with: + type: stable