Skip to content

Commit dac25aa

Browse files
committed
persist .git repo to deploy job
1 parent cbe481b commit dac25aa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,18 @@ jobs:
5050
root: /go/src/github.com/yonkornilov/cloudless-init
5151
paths:
5252
- cloudless-init.so
53+
- .git
5354
deploy:
5455
docker:
5556
- image: tsub/ghr
5657
working_directory: /
5758
steps:
5859
- attach_workspace:
5960
at: /cloudless-init
60-
- checkout:
61-
path: /repo
62-
- run: cd /repo && ghr -u $CIRCLE_USERNAME $(git describe --abbrev=0 --tags) /cloudless-init/cloudless-init.so
61+
- run: apk update
62+
- run: apk add git
63+
- run: git clone https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
64+
- run: cd /cloudless-init && ghr -u $CIRCLE_USERNAME $(git describe --abbrev=0 --tags) /cloudless-init/cloudless-init.so
6365
workflows:
6466
version: 2
6567
btd:

0 commit comments

Comments
 (0)