Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ variables:

build:
stage: build
image: golang:1.23-alpine
image: harbor.dataknife.net/dockerhub/library/golang:1.23-alpine
script:
- apk add --no-cache make git
- apk add --no-cache make git bash
- make build
artifacts:
paths:
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help install dev test lint format clean docker-build docker-run docs run venv check all check-all commit-changes release
.PHONY: help install dev test lint format clean build docker-build docker-run docs run venv check all check-all commit-changes release

# Force use of bash shell (required for make to work properly with line continuations)
SHELL := /bin/bash
Expand All @@ -25,6 +25,7 @@ help:
@echo " test-fast Run tests without coverage"
@echo " lint Run linters (ruff, mypy)"
@echo " format Format code with black and ruff"
@echo " build Build Python package (creates dist/)"
@echo " clean Remove build artifacts and cache files"
@echo " docker-build Build Docker image"
@echo " docker-login Login to Harbor registry (requires HARBOR_USERNAME and HARBOR_PASSWORD)"
Expand Down Expand Up @@ -69,6 +70,10 @@ format:
$(BLACK) highcommand tests
$(RUFF) check --fix .

build: clean
pip install --upgrade pip build
python -m build

clean:
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
Expand Down