From 69aa773ba3fde1a5a2796c0fa279465396748214 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Sun, 27 Oct 2019 06:31:06 -0700 Subject: [PATCH] have circleci push images up --- .circleci/config.yml | 5 +++-- Makefile | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1ce59cb..4a81566 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,8 @@ jobs: machine: true steps: - checkout - - run: | - make dist + - run: make dist - store_artifacts: path: output + - run: echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin + - run: make ci-upload-images diff --git a/Makefile b/Makefile index 98608bf..b505991 100644 --- a/Makefile +++ b/Makefile @@ -62,3 +62,7 @@ upload-docker-image: build-docker-image docker push $(IMAGENAME):$(VERSION) docker push $(IMAGENAME):$(BUILDTIMETAG) docker push $(IMAGENAME):latest + +ci-upload-images: + docker push $(IMAGENAME):$(VERSION) + docker push $(IMAGENAME):$(BUILDTIMETAG)