Skip to content

Commit 9690e66

Browse files
chore:use simpe docker cmd to push
1 parent c60aebe commit 9690e66

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
env:
77
CONTEXT_PATH: .
88
DOCKER_PATH: ./Dockerfile
9-
DOCKER_REPO: teamA
9+
DOCKER_REGISTRY: docker.io
10+
DOCKER_REPO: teama
1011
IMAGE_NAME: be
1112
jobs:
1213
publish:
@@ -30,7 +31,7 @@ jobs:
3031
with:
3132

3233
images: |
33-
"${{secrets.DOCKER_USERNAME}}/${{ env.DOCKER_REPO }}/${{ env.IMAGE_NAME }}"
34+
"${{env.DOCKER_REGISTRY}}/${{secrets.DOCKER_USERNAME}}/${{ env.DOCKER_REPO }}"
3435
tags: |
3536
type=raw,value={{branch}}-sha-{{sha}}
3637

0 commit comments

Comments
 (0)