Compare commits

..

2 Commits

Author SHA1 Message Date
bamanker
f3eeaf48fd 修改docker命令
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-31 09:14:14 +08:00
bamanker
46f1b7ca22 手动输入命令构建docker镜像并上传1
Some checks failed
Build Push and Deploy Image / build (push) Failing after 19m45s
2025-12-31 01:08:50 +08:00

View File

@@ -67,7 +67,8 @@ jobs:
run: |
echo "The app version is $APP_TAG" && echo "tag=$APP_TAG" >> $GITHUB_OUTPUT &&
echo "now workspace: ${{ github.workspace }}" &&
pwd
pwd &&
docker -v
# 为其他配置文件注入环境变量
- name: Inject envVar
@@ -109,11 +110,7 @@ jobs:
env:
TAG: ${{ steps.set_envar.outputs.tag }}
run: |
docker buildx build \
--platform linux/amd64 \
--tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} \
--push \
.
docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push .
# with:
# context: .
## platforms: linux/amd64