Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (59 sloc) 1.4 KB
version: 2
jobs:
build-branch:
machine: true
steps:
- checkout
- run: VERSION=${CIRCLE_BRANCH}-SNAPSHOT docker-compose build
- run: |
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
- run: VERSION=${CIRCLE_BRANCH}-SNAPSHOT docker-compose push
build-tag:
machine: true
steps:
- checkout
- run:
command: VERSION=${CIRCLE_TAG} docker-compose build
- run: |
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
- run: VERSION=${CIRCLE_TAG} docker-compose push
workflows:
version: 2
push:
jobs:
- build-branch:
context: pasztor.at
filters:
branches:
only: /.*/
tags:
ignore: /.*/
- build-tag:
context: pasztor.at
filters:
branches:
ignore: /.*/
tags:
only: /.*/
timed:
jobs:
- build-branch:
context: pasztor.at
filters:
branches:
only: /.*/
tags:
ignore: /.*/
- build-tag:
context: pasztor.at
filters:
branches:
ignore: /.*/
tags:
only: /.*/
triggers:
- schedule:
cron: "0 6 * * *"
filters:
branches:
only: /.*/
You can’t perform that action at this time.