merge build&push dashboard img
manual build & push dashboard, controller & operator
@@ -33,7 +33,7 @@ jobs:
name: upload coverage
working_directory: ./api
command: bash <(curl -s https://codecov.io/bash)
- build-dashboard-image:
+ build-push-dashboard-image:
docker:
- image: circleci/buildpack-deps:stretch
steps:
@@ -43,24 +43,6 @@ jobs:
- run:
name: Build Docker image
command: docker build -t kalmhq/kalm:latest .
- - run:
- name: Archive Docker image
- command: docker save -o image.tar kalmhq/kalm:latest
- - persist_to_workspace:
- root: .
- paths:
- - ./image.tar
- push-dashboard-image:
- docker:
- - image: circleci/buildpack-deps:stretch
- steps:
- - attach_workspace:
- at: /tmp/workspace
- - setup_remote_docker
- - checkout
- - run:
- name: Load archived Docker image
- command: docker load -i /tmp/workspace/image.tar
- run:
name: Publish Docker Image to DOCKER HUB
command: |
@@ -216,18 +198,19 @@ workflows:
filters:
tags:
only: /^v.*/
- - build-dashboard-image:
- filters:
- branches:
- only:
- - master
- tags:
- only: /^v.*/
- - push-dashboard-image:
+ - hold:
+ type: approval # <<< This key-value pair will set your workflow to a status of "On Hold"
+ requires: # We only run the "hold" job when test2 has succeeded
+ - test-dashboard
+ - build-push-dashboard-image:
+ name: manual-build-push-dashboard-image
+ context: kalm-ci
+ requires:
+ - hold
+ - build-push-dashboard-image:
context: kalm-ci
requires:
- test-dashboard
- - build-dashboard-image
filters:
branches:
only:
@@ -292,6 +275,13 @@ workflows:
- master
tags:
only: /^v.*/
+ - hold:
+ type: approval
+ - build-push-operator-image:
+ name: manual-build-push-operator-image
+ context: kalm-ci
+ requires:
+ - hold
- deploy-operator:
context: deploy-demo-cluster
requires:
