Skip to content

Commit

Permalink
Merge pull request #9 from ibuildthecloud/master
Browse files Browse the repository at this point in the history
Fix build issues
  • Loading branch information
ibuildthecloud authored Apr 28, 2020
2 parents f725271 + f6c1929 commit 735b38e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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 $*
Expand Down

0 comments on commit 735b38e

Please sign in to comment.