diff --git a/Dockerfile b/Dockerfile index e3b8b93854..febab62238 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,11 +44,11 @@ COPY --from=k8s \ /bin/ COPY --from=k3s \ /bin/runc \ - /bin + /bin/ COPY --from=containerd \ /usr/local/bin/containerd-shim-runc-v2 \ /usr/local/bin/containerd \ /usr/local/bin/containerd-shim \ /usr/local/bin/ctr \ /usr/local/bin/containerd-shim-runc-v1 \ - /bin + /bin/ diff --git a/Makefile b/Makefile index 623fdf62af..45a7c0f918 100644 --- a/Makefile +++ b/Makefile @@ -39,9 +39,9 @@ else DEBUG_GO_GCFLAGS := -gcflags=all="-N -l" endif -VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always) -REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi) -RELEASE=${PROG}-$(VERSION:v%=%).${GOOS}-${GOARCH} +VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.dirty' --always --tags) +REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .dirty; fi) +RELEASE=${PROG}-$(VERSION).${GOOS}-${GOARCH} ifdef BUILDTAGS GO_BUILDTAGS = ${BUILDTAGS} @@ -112,10 +112,12 @@ dev-shell: .dev-shell-build ## Launch a development shell to run te dev-shell-enter: ## Enter the development shell on another terminal docker exec -it ${PROG}-dev-shell bash -.ci: validate-ci build +artifacts: build mkdir -p dist/artifacts cp bin/${PROG} dist/artifacts/${RELEASE} +.ci: validate-ci artifacts + in-docker-%: .dapper ## Advanced: wraps any target in Docker environment, for example: in-docker-build-debug mkdir -p bin/ dist/ ./.dapper -f Dockerfile --target dapper make $*