Skip to content

Commit

Permalink
fix(docker): fix docker image name for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jj-style committed Mar 28, 2024
1 parent 7cf3c88 commit c0f829a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
permissions:
contents: write

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
release:
name: Release
Expand Down Expand Up @@ -38,15 +42,15 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/gobal-player-server
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/gobal-player-server

- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ RESTful server with friendly APIs to global player, and more features coming soo

### Docker

Run with docker: `docker run --rm -it -p 8080:8080 ghcr.io/jj-style/gobal-player-server:v0.1.10`
Run with docker: `docker run --rm -it -p 8080:8080 ghcr.io/jj-style/gobal-player/gobal-player-server:v0.1.10`

0 comments on commit c0f829a

Please sign in to comment.