mirror of
https://github.com/Damillora/phoebe.git
synced 2025-03-10 14:07:22 +00:00
chore: update github workflow
This commit is contained in:
parent
f62e3d3b7c
commit
724b857c99
10
.github/workflows/workflow.yml
vendored
10
.github/workflows/workflow.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Sanitize platform name
|
name: Sanitize platform name
|
||||||
id: set-platform
|
id: set_platform
|
||||||
run: |
|
run: |
|
||||||
PLATFORM=$(echo ${{ matrix.platform }} | tr '/' '_')
|
PLATFORM=$(echo ${{ matrix.platform }} | tr '/' '_')
|
||||||
echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
|
echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build Binaries
|
name: Build Binaries
|
||||||
id: docker_build
|
id: docker_build_bin
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
@ -54,7 +54,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Build and push (No tag)
|
name: Build and push (No tag)
|
||||||
if: env.IS_LINUX == 'true' && env.IS_RELEASE == 'false'
|
if: env.IS_LINUX == 'true' && env.IS_RELEASE == 'false'
|
||||||
id: docker_build
|
id: docker_build_git
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
@ -63,12 +63,12 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Build and push (Tagged)
|
name: Build and push (Tagged)
|
||||||
if: env.IS_LINUX == 'true' && env.IS_RELEASE == 'true'
|
if: env.IS_LINUX == 'true' && env.IS_RELEASE == 'true'
|
||||||
id: docker_build
|
id: docker_build_release
|
||||||
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/shioriko:${{ env.GIT_TAG }}
|
tags: damillora/shioriko:${{ env.GIT_TAG }}, damillora/shioriko: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