Fix failed to push docker images with a specified tag
Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
2
.github/workflows/build-multiarch.yaml
vendored
2
.github/workflows/build-multiarch.yaml
vendored
@@ -39,4 +39,4 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||
REPO=kubespheredev TAG="${GITHUB_REF#refs/heads/}-multiarch" make container-cross-push
|
||||
REPO=kubespheredev TAG="${GITHUB_REF#refs/*/}-multiarch" make container-cross-push
|
||||
|
||||
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -64,4 +64,4 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||
REPO=kubespheredev TAG=${GITHUB_REF#refs/heads/} make container-push
|
||||
REPO=kubespheredev TAG=${GITHUB_REF#refs/*/} make container-push
|
||||
|
||||
Reference in New Issue
Block a user