Update circleci config

pull/274/head
Miguel Mota 3 years ago
parent 740a055eb8
commit 6c77a55f9a
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -4,7 +4,7 @@ orbs:
base: dmx-io/base@2.0.88 base: dmx-io/base@2.0.88
jobs: jobs:
build: build_and_push:
working_directory: /app working_directory: /app
docker: docker:
- image: docker:17.09.0-ce-git - image: docker:17.09.0-ce-git
@ -16,7 +16,6 @@ jobs:
command: | command: |
apk update apk update
apk upgrade apk upgrade
apk add --no-cache curl
apk add --no-cache make apk add --no-cache make
- run: - run:
name: Build application Docker image name: Build application Docker image
@ -25,14 +24,14 @@ jobs:
- deploy: - deploy:
name: Push Docker image to Docker Hub name: Push Docker image to Docker Hub
command: | command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS make docker-login-ci
make docker-tag-ci make docker-tag-ci
make docker-push-ci make docker-push-ci
workflows: workflows:
main: main:
jobs: jobs:
- build: - build_and_push:
filters: filters:
branches: branches:
only: only:

@ -229,6 +229,12 @@ release:
rm -rf dist rm -rf dist
VERSION=$(VERSION) goreleaser VERSION=$(VERSION) goreleaser
docker-login:
docker login
docker-login-ci:
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker-build: docker-build:
docker build --build-arg VERSION=$(VERSION) --build-arg MAINTAINER=$(MAINTAINER) -t cointop/cointop . docker build --build-arg VERSION=$(VERSION) --build-arg MAINTAINER=$(MAINTAINER) -t cointop/cointop .

Loading…
Cancel
Save