Skip to content

Commit

Permalink
feat: update docker workflow for prerelease support
Browse files Browse the repository at this point in the history
  • Loading branch information
versun committed Jun 19, 2024
1 parent ef7f21b commit e50cbec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Image CI

on:
release:
types: [published]
types: [published, prereleased]

jobs:
build:
Expand Down Expand Up @@ -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' }}

0 comments on commit e50cbec

Please sign in to comment.