From 1cb479d3c129b95e0a11e9e5293ae6e919c806f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Tue, 4 Apr 2023 17:45:55 +0200 Subject: [PATCH] Publish docker image for tags as well --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86979fa..0889eb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,10 +101,10 @@ jobs: - run: npm run test publish: - if: contains(' + if: (contains(' refs/heads/main refs/heads/develop - ', github.ref) && github.repository == 'fumiX/fuBlog' + ', github.ref) || startsWith(github.ref, 'refs/tags/v')) && github.repository == 'fumiX/fuBlog' needs: [test, lint] runs-on: ubuntu-latest permissions: @@ -144,10 +144,10 @@ jobs: labels: ${{ steps.meta.outputs.labels }} publish-db-image: - if: contains(' + if: (contains(' refs/heads/main refs/heads/develop - ', github.ref) && github.repository == 'fumiX/fuBlog' + ', github.ref) || startsWith(github.ref, 'refs/tags/v')) && github.repository == 'fumiX/fuBlog' needs: [test, lint] runs-on: ubuntu-latest permissions: