mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-25 09:23:11 +00:00
ci: add ghcr imagine
This commit is contained in:
parent
a1fbcf7008
commit
8dcbe4db9d
13
.github/workflows/Build_Image.yml
vendored
13
.github/workflows/Build_Image.yml
vendored
@ -6,6 +6,10 @@ on:
|
|||||||
tags: ["v*"]
|
tags: ["v*"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -25,6 +29,13 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@ -33,4 +44,6 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
moefurina/ncm-api:latest
|
moefurina/ncm-api:latest
|
||||||
moefurina/ncm-api:${{ env.VERSION }}
|
moefurina/ncm-api:${{ env.VERSION }}
|
||||||
|
ghcr.io/moefurina/ncm-api:latest
|
||||||
|
ghcr.io/moefurina/ncm-api:${{ env.VERSION }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user