Skip to content

Commit

Permalink
修复action中镜像路径问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jorben committed Mar 9, 2024
1 parent ee0b6d6 commit 5401baa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docker_build_multi_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ on:
push:
tags:
- '*'
env:
REPO_NAME: ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}

jobs:
build-and-push-image-to-dockerhub:
runs-on: ubuntu-latest
steps:
- name: CheckTag
run: |
echo $REPO_NAME
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
Expand All @@ -26,4 +31,4 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.repository }}:${{ github.ref_name }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ github.ref_name }}

0 comments on commit 5401baa

Please sign in to comment.