mirror of
https://github.com/Damillora/phoebe.git
synced 2025-03-10 05:57:22 +00:00
feat: rename workflow in prepare for release
This commit is contained in:
parent
f8c3a3e062
commit
88b0a91f50
@ -3,10 +3,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "v*"
|
||||
env:
|
||||
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') && 'true' || 'false' }}
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@ -53,22 +49,12 @@ jobs:
|
||||
retention-days: 7
|
||||
-
|
||||
name: Build and push (No tag)
|
||||
if: env.IS_LINUX == 'true' && env.IS_RELEASE == 'false'
|
||||
id: docker_build_git
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
platforms: ${{ matrix.platform }}
|
||||
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
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
Loading…
x
Reference in New Issue
Block a user