1
0
mirror of https://github.com/songquanpeng/one-api.git synced 2025-02-06 10:44:25 +00:00

chore: refactor docker image workflow to use format function for repository URLs

This commit is contained in:
JustSong 2025-02-02 14:21:20 +08:00
parent 46b1d35d83
commit 562964238c

View File

@ -56,7 +56,7 @@ jobs:
with:
images: |
${{ contains(github.ref, 'alpha') && 'justsong/one-api-alpha' || 'justsong/one-api' }}
${{ contains(github.ref, 'alpha') && 'ghcr.io/${{ github.repository }}-alpha' || 'ghcr.io/${{ github.repository }}' }}
${{ contains(github.ref, 'alpha') && format('ghcr.io/{0}-alpha', github.repository) || format('ghcr.io/{0}', github.repository) }}
- name: Build and push Docker images
uses: docker/build-push-action@v3