Skip to content

Commit

Permalink
#227 improve circle ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
elKei24 committed Feb 4, 2021
1 parent 7426a89 commit bed47c4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ workflows:
requires:
- pack
type: approval
filters:
branches:
only: main
- deploy:
requires:
- hold
filters:
branches:
only: main

jobs:
build:
Expand Down Expand Up @@ -45,6 +54,23 @@ jobs:
paths:
- build/distributions/*
pack:
docker:
- image: cimg/base:2020.01
working_directory: ~/project/backend
steps:
- checkout:
path: ~/project
- attach_workspace:
at: /tmp/workspace
- run: cp -r /tmp/workspace/** .
- run: ../scripts/backend_deb.sh
- store_artifacts:
path: build/*.deb
- persist_to_workspace:
root: .
paths:
- build/*.deb
deploy:
docker:
- image: cimg/base:2020.01
working_directory: ~/project/backend
Expand Down
2 changes: 1 addition & 1 deletion scripts/backend_deb.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -eo pipefail
#!/bin/bash -e

# deb constants
version=1.0
Expand Down

0 comments on commit bed47c4

Please sign in to comment.