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:
parent
46b1d35d83
commit
562964238c
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user