mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
Delete .circleci directory
This commit is contained in:
@@ -1,69 +0,0 @@
|
|||||||
# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml'
|
|
||||||
version: 2.1
|
|
||||||
orbs:
|
|
||||||
slack: circleci/slack@4.4.4
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
working_directory: ~/app
|
|
||||||
docker:
|
|
||||||
- image: docker:17.05.0-ce-git
|
|
||||||
steps:
|
|
||||||
- checkout:
|
|
||||||
path: ~/app
|
|
||||||
- setup_remote_docker:
|
|
||||||
version: 19.03.13
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-{{ .Branch }}
|
|
||||||
paths:
|
|
||||||
- /caches/app.tar
|
|
||||||
- run:
|
|
||||||
name: Load Docker image layer cache
|
|
||||||
command: |
|
|
||||||
set +o pipefail
|
|
||||||
docker load -i /caches/app.tar | true
|
|
||||||
- run:
|
|
||||||
name: Build application Docker image
|
|
||||||
command: |
|
|
||||||
docker build -t abouhuolia/bigcapital-client:latest .
|
|
||||||
- run:
|
|
||||||
name: Save Docker image layer cache
|
|
||||||
command: |
|
|
||||||
mkdir -p /caches
|
|
||||||
docker save -o /caches/app.tar abouhuolia/bigcapital-client
|
|
||||||
- save_cache:
|
|
||||||
key: v1-{{ .Branch }}-{{ epoch }}
|
|
||||||
paths:
|
|
||||||
- /caches/app.tar
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: /caches
|
|
||||||
paths:
|
|
||||||
- ./app.tar
|
|
||||||
deploy:
|
|
||||||
working_directory: ~/app
|
|
||||||
docker:
|
|
||||||
- image: docker:17.05.0-ce-git
|
|
||||||
steps:
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- setup_remote_docker:
|
|
||||||
version: 19.03.13
|
|
||||||
- run:
|
|
||||||
name: Load archived Docker image
|
|
||||||
command: docker load -i /tmp/workspace/app.tar
|
|
||||||
- run:
|
|
||||||
name: Publish Docker Image to Docker Hub
|
|
||||||
command: |
|
|
||||||
docker login -u abouhuolia -p 1532015325_ASdfqwer
|
|
||||||
docker push abouhuolia/bigcapital-client:latest
|
|
||||||
|
|
||||||
workflows:
|
|
||||||
build_and_publish: # name of your workflow
|
|
||||||
jobs:
|
|
||||||
- build
|
|
||||||
- deploy:
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: master
|
|
||||||
Reference in New Issue
Block a user