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 5401baa commit dea34fb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/docker_build_multi_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@ 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 @@ -31,4 +26,4 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ github.ref_name }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:${{ github.ref_name }}

0 comments on commit dea34fb

Please sign in to comment.