Compare commits

...

3 Commits

Author SHA1 Message Date
a6f800a2a3
use $UID/$GID for test as well
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-04 16:04:20 -08:00
9e24d19593
we will yolo the build 2021-01-04 16:03:51 -08:00
7fa5af6694
location should now be in path by server config 2021-01-04 16:03:21 -08:00
2 changed files with 2 additions and 5 deletions

View File

@ -12,14 +12,11 @@ steps:
from_secret: docker_password
REGISTRY:
from_secret: docker_registry
DOCKER_CLI_LOCATION:
from_secret: docker-cli-location
volumes:
- name: dockersock
path: /var/run
commands:
- apk add make git
- 'export PATH="$${DOCKER_CLI_LOCATION}":"$${PATH}"'
- 'while [ "$(docker info >/dev/null 2>&1; echo $?)" -ne 0 ]; do sleep 1; done'
- echo login $REGISTRY
- docker login -u $USERNAME -p $PASSWORD $REGISTRY

View File

@ -127,7 +127,7 @@ STAMPS = $(foreach outbin,$(OUTBINS),.go/$(outbin).stamp)
$(STAMPS): go-build
@echo "binary: $(OUTBIN)"
@if ! cmp -s .go/$(OUTBIN) $(OUTBIN); then \
mv .go/$(OUTBIN) $(OUTBIN); \
mv -f .go/$(OUTBIN) $(OUTBIN); \
date >$@; \
fi
@ -254,7 +254,7 @@ test: $(BUILD_DIRS)
@$(DKR) run \
-i \
--rm \
-u $$(id -u):$$(id -g) \
-u $(UID):$(GID) \
-v $$(pwd):/src \
-w /src \
-v $$(pwd)/.go/bin/$(OS)_$(ARCH):/go/bin \