mirror of
https://github.com/miguelmota/cointop
synced 2024-11-10 13:10:26 +00:00
Update circleci config
This commit is contained in:
parent
740a055eb8
commit
6c77a55f9a
@ -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:
|
||||||
|
6
Makefile
6
Makefile
@ -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…
Reference in New Issue
Block a user