Skip to content

Commit

Permalink
fix: 修复image名称问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TNXG committed Feb 9, 2025
1 parent b6dd9bf commit b23ab11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/afh-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 获取 GHCR 镜像标签
run: echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY,,}:latest" >> $GITHUB_ENV

- name: 构建并推送 Docker 镜像
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:latest
tags: ${{ env.IMAGE_NAME }}

0 comments on commit b23ab11

Please sign in to comment.