Skip to content

Commit

Permalink
Merge pull request #19 from pysio2007/pysio2007-patch-1
Browse files Browse the repository at this point in the history
fix: bulid-docker.yml
  • Loading branch information
pysio2007 authored Oct 5, 2024
2 parents 4067219 + 6636660 commit 7ca85f0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/bulid-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
- v*

env:
REGISTRY: ghcr.io
IMAGE: pysio2007/pysioblog
REGISTRY: docker.io
IMAGE: pysio/pysioblog

jobs:
build-and-push:
Expand Down Expand Up @@ -51,14 +51,13 @@ jobs:
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
# 登录到 GitHub Packages 容器仓库
# 注意 secrets.GITHUB_TOKEN 不需要手动添加,直接就可以用
- name: Log in to the Container registry
# 登录到 Docker Hub 容器仓库
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

# 根据输入自动生成 tag 和 label 等数据,说明见下
- name: Extract metadata for Docker
Expand All @@ -82,4 +81,4 @@ jobs:
- name: Inspect image
run: |
docker buildx imagetools inspect \
${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.meta.outputs.version }}
${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.meta.outputs.version }}

0 comments on commit 7ca85f0

Please sign in to comment.