From 161597dc3f6a4aec8b370e3f16c588186868d3c7 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sun, 25 Jun 2023 23:06:53 +0200 Subject: [PATCH] fix ci --- .gitea/workflows/divent.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/divent.yml b/.gitea/workflows/divent.yml index dde006e..93bb5f4 100644 --- a/.gitea/workflows/divent.yml +++ b/.gitea/workflows/divent.yml @@ -26,14 +26,14 @@ jobs: id: meta with: images: xefir/divent - flavor: latest=true + flavor: latest=${{ gitea.ref == 'refs/heads/master' }} - uses: https://github.com/docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: https://github.com/docker/build-push-action@v4 with: - push: true + push: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}