Allow manual building and pushing since Drone builds are not working yet
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
IamTheFij 2019-08-09 17:50:03 -07:00
parent dea2a5a922
commit 093371a39a
2 changed files with 33 additions and 5 deletions

View File

@ -1,3 +1,4 @@
DOCKER_REPO := iamthefij
DOCKER_TAG := dockamole DOCKER_TAG := dockamole
MOLE_VERSION := 0.4.0 MOLE_VERSION := 0.4.0
@ -97,4 +98,34 @@ build-server-arm64v8:
docker build server --build-arg REPO=arm64v8 -t $(DOCKER_TAG)-server-arm64v8 docker build server --build-arg REPO=arm64v8 -t $(DOCKER_TAG)-server-arm64v8
.PHONY: build-all .PHONY: build-all
build-all: build build-arm32v6 build-arm64v8 build-all: build build-arm32v6 build-arm32v7 build-arm64v8
.PHONY: tag-all
tag-all: build-all
@echo Tag client images
docker tag dockamole-client $(DOCKER_REPO)/dockamole-client:latest
docker tag dockamole-client $(DOCKER_REPO)/dockamole-client:linux-amd64
docker tag dockamole-client-arm32v6 $(DOCKER_REPO)/dockamole-client:linux-arm32v6
docker tag dockamole-client-arm32v7 $(DOCKER_REPO)/dockamole-client:linux-arm32v7
docker tag dockamole-client-arm64v8 $(DOCKER_REPO)/dockamole-client:linux-arm64v8
@echo Tag server images
docker tag dockamole-server $(DOCKER_REPO)/dockamole-server:latest
docker tag dockamole-server $(DOCKER_REPO)/dockamole-server:linux-amd64
docker tag dockamole-server-arm32v6 $(DOCKER_REPO)/dockamole-server:linux-arm32v6
docker tag dockamole-server-arm32v7 $(DOCKER_REPO)/dockamole-server:linux-arm32v7
docker tag dockamole-server-arm64v8 $(DOCKER_REPO)/dockamole-server:linux-arm64v8
.PHONY: push-all
push-all: tag-all
@echo Push client images
docker push $(DOCKER_REPO)/dockamole-client:latest
docker push $(DOCKER_REPO)/dockamole-client:linux-amd64
docker push $(DOCKER_REPO)/dockamole-client:linux-arm32v6
docker push $(DOCKER_REPO)/dockamole-client:linux-arm32v7
docker push $(DOCKER_REPO)/dockamole-client:linux-arm64v8
@echo Push server images
docker push $(DOCKER_REPO)/dockamole-server:latest
docker push $(DOCKER_REPO)/dockamole-server:linux-amd64
docker push $(DOCKER_REPO)/dockamole-server:linux-arm32v6
docker push $(DOCKER_REPO)/dockamole-server:linux-arm32v7
docker push $(DOCKER_REPO)/dockamole-server:linux-arm64v8

View File

@ -1,10 +1,7 @@
ARG REPO=library ARG REPO=library
FROM multiarch/qemu-user-static AS qemu
# Build image from alpine
FROM ${REPO}/alpine FROM ${REPO}/alpine
COPY --from=qemu /usr/bin/qemu-* /usr/bin/ COPY --from=multiarch/qemu-user-static /usr/bin/qemu-* /usr/bin/
# Install SSH and set up basic config # Install SSH and set up basic config
RUN apk add openssh-server augeas RUN apk add openssh-server augeas