feat: rename workflow in prepare for release

This commit is contained in:
Damillora 2025-02-24 14:35:15 +00:00
parent f8c3a3e062
commit 88b0a91f50

View File

@ -3,10 +3,6 @@ on:
push: push:
branches: branches:
- main - main
tags:
- "v*"
env:
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') && 'true' || 'false' }}
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -53,22 +49,12 @@ jobs:
retention-days: 7 retention-days: 7
- -
name: Build and push (No tag) name: Build and push (No tag)
if: env.IS_LINUX == 'true' && env.IS_RELEASE == 'false'
id: docker_build_git id: docker_build_git
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
push: true push: true
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
tags: damillora/phoebe:main tags: damillora/phoebe:main
-
name: Build and push (Tagged)
if: env.IS_LINUX == 'true' && env.IS_RELEASE == 'true'
id: docker_build_release
uses: docker/build-push-action@v6
with:
push: true
platforms: ${{ matrix.platform }}
tags: damillora/phoebe:${{ env.GIT_TAG }}, damillora/phoebe:latest
- -
name: Image digest name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: echo ${{ steps.docker_build.outputs.digest }}