Skip to content

Commit

Permalink
chore: refactor docker image workflow to use format function for repo…
Browse files Browse the repository at this point in the history
…sitory URLs
  • Loading branch information
songquanpeng committed Feb 2, 2025
1 parent 46b1d35 commit 5629642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5629642

Please sign in to comment.