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:
|
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 }}
|
Loading…
x
Reference in New Issue
Block a user