更新 .gitlab-ci.yml

This commit is contained in:
Cherry Sakura 2023-10-31 06:20:53 +00:00
parent 0d9570d8c8
commit 66e3f67b9f

View File

@ -16,8 +16,7 @@ docker-build:
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
- docker push "$CI_REGISTRY_IMAGE${tag}"
- docker buildx build -t "$CI_REGISTRY_IMAGE${tag}" --platform=linux/arm,linux/arm64,linux/amd64 . --push
# Run this job in a branch where a Dockerfile exists
rules:
- if: $CI_COMMIT_BRANCH