Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker test push #128

Merged
merged 4 commits into from
May 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 2 additions & 30 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,46 +85,18 @@ commands:
codecov --file .tox/cover/report/coverage.xml --name ${CODECOV_NAME}-unittests
codecov --file .tox/func/report/coverage.xml --name ${CODECOV_NAME}-functional

docker:
parameters:
docker_version:
type: string
default: "edge"
steps:
- setup_remote_docker
- run:
name: dockers
description: Build and release docker
command: |
bash <(curl -fsSL https://get.docker.com)
docker login -u redisfab -p $DOCKER_REDISFAB_PWD
docker build -t redisgraph:<<parameters.docker_version>> .
docker push

jobs:
build:
parameters:
python_version:
type: string
default: "latest"
docker:
- image: circleci/python:<<parameters.python_version>>
- image: redislabs/redisgraph:edge
steps:
- build_and_test

# since this is used by cron, we by default build against latest
build_and_publish:
parameters:
docker_version:
type: string
default: "edge"
docker:
- image: circleci/python:latest
- image: redislabs/redisgraph:edge

steps:
- build_and_test
- docker

on-any-branch: &on-any-branch
filters:
Expand Down Expand Up @@ -164,4 +136,4 @@ workflows:
cron: "0 0 * * *"
<<: *on-master
jobs:
- build_and_publish
- build