Skip to content

Commit

Permalink
trying circleci build
Browse files Browse the repository at this point in the history
  • Loading branch information
EJ Etherington committed Mar 19, 2018
1 parent 91154d7 commit 8a8bfe0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2

jobs:
build_and_push:
docker:
- image: quay.io/reactiveops/ci-images:v7.2.8-alpine

steps:
- checkout
- setup_remote_docker
- run:
name: build tag and push
command: |
tag=$(echo ${CIRCLE_BRANCH} | sed "s/\//\-/g")
docker login quay.io -u="reactiveops+circleci" -p="${quay_token}"
docker build -t quay.io/reactiveops/rbac-manager:${tag} .
docker tag quay.io/reactiveops/rbac-manager:${tag} quay.io/reactiveops/rbac-manager:${CIRCLE_SHA1}
docker push quay.io/reactiveops/rbac-manager:${tag}
docker push quay.io/reactiveops/rbac-manager:${CIRCLE_SHA1}
workflows:
version: 2
build_test:
jobs:
- build_and_push:
context: org-global

0 comments on commit 8a8bfe0

Please sign in to comment.