From e50cbecd643626a632858199ff919b96ba256ffd Mon Sep 17 00:00:00 2001 From: Versun Date: Wed, 19 Jun 2024 06:35:14 +0000 Subject: [PATCH] feat: update docker workflow for prerelease support --- .github/workflows/docker-image.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c0a026d..fcde3c5 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,7 +2,7 @@ name: Docker Image CI on: release: - types: [published] + types: [published, prereleased] jobs: build: @@ -31,4 +31,8 @@ jobs: with: platforms: linux/arm64,linux/amd64 push: true - tags: rsstranslator/rsstranslator:latest,rsstranslator/rsstranslator:${{ steps.latesttag.outputs.tag }} + tags: | + rsstranslator/rsstranslator:${{ steps.latesttag.outputs.tag }} + ${{ github.event.release.prerelease && 'rsstranslator/rsstranslator:dev' || 'rsstranslator/rsstranslator:latest' }} + +