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)