Skip to content

Commit

Permalink
更新 docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
luyanci authored Dec 9, 2024
1 parent 7454e63 commit 934b528
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
- Genshin-Impact-Wish-Simulator/src/**/**

jobs:
Build:
DockerHub:
name: Publish to dockerhub
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand All @@ -20,7 +21,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & Push to DockerHub
- name: Build & Push
uses: docker/[email protected]
with:
context: .
Expand All @@ -29,3 +30,25 @@ jobs:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=maizig/ysdm:latest
cache-to: type=inline
Ghcr:
name: Publish to ghcr.io
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_TOKEN }}
- name: Build & Push
uses: docker/[email protected]
with:
context: .
push: true
tags: animation-picker/genshin-impact:latest
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=animation-picker/genshin-impact:latest
cache-to: type=inline

0 comments on commit 934b528

Please sign in to comment.