chore(ci): add pre-release step

This commit is contained in:
The0Mikkel 2024-05-28 10:02:38 +02:00
parent 2c59d32732
commit 575afa393e

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- main
- develop
jobs:
release:
@ -14,6 +15,16 @@ jobs:
name: Docker
needs:
- release
if: needs.release.outputs.version != '' && github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: the0mikkel/ci/.github/workflows/docker.yml@v1.1.4
with:
semver: ${{ needs.release.outputs.version }}
docker-prerelease:
name: Docker Prerelease
needs:
- release
if: needs.release.outputs.version != '' && github.event_name == 'push' && github.ref == 'refs/heads/develop'
uses: the0mikkel/ci/.github/workflows/docker.yml@v1.1.4
with:
tags: type=raw,value=${{ needs.release.outputs.version }}