Chuyển tới nội dung chính

Tài liệu tham khảo Build and push

Field reference cho Thêm Build and push job.

Field của Build and push

FieldMeaning
Job nameTên Job. Mặc định là build-and-push.
Docker file locationRead-only. Repository lấy từ Code source của Pipeline — Dockerfile được đọc từ đây.
Docker file path (relative)Đường dẫn tới Dockerfile, tính từ gốc repository, ví dụ Dockerfile hoặc docker/Dockerfile.
Build context directoryThư mục dùng làm Docker build context. Mặc định là ..
Container registry connections1 connection có sẵn từ Quản lý Credentials, hoặc thêm mới.
Registry repositoryTên repository trong container registry đã chọn, nơi image sẽ được push tới, ví dụ team-platform/my-service.
Docker build argumentCặp key/value tuỳ chọn, truyền vào docker build --build-arg. Thêm hoặc xoá dòng khi cần.

Xem thêm