mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-25 06:15:56 +01:00
ci: use checkout
This commit is contained in:
parent
f9c64961ff
commit
05879cfb0f
@ -2,11 +2,11 @@
|
||||
version: 2
|
||||
|
||||
aliases:
|
||||
- &get-code
|
||||
run:
|
||||
name: Get code
|
||||
command: |
|
||||
git clone -b $CIRCLE_BRANCH https://github.com/ansible-semaphore/semaphore.git ./
|
||||
# - &get-code
|
||||
# run:
|
||||
# name: Get code
|
||||
# command: |
|
||||
# git clone -b $CIRCLE_BRANCH https://github.com/ansible-semaphore/semaphore.git ./
|
||||
|
||||
- &golang-image
|
||||
image: circleci/golang:1.13
|
||||
@ -90,7 +90,7 @@ jobs:
|
||||
steps:
|
||||
- *install-node
|
||||
- *install-task-binary
|
||||
- *get-code
|
||||
- checkout
|
||||
- *load-go-cache
|
||||
- *load-npm-cache
|
||||
- run: task deps
|
||||
@ -110,7 +110,7 @@ jobs:
|
||||
- *install-node
|
||||
- *install-task-binary
|
||||
- run: sudo apt-get install rpm
|
||||
- *get-code
|
||||
- checkout
|
||||
- *load-go-cache
|
||||
- *load-npm-cache
|
||||
- run: task deps
|
||||
@ -125,7 +125,7 @@ jobs:
|
||||
- *golang-image
|
||||
working_directory: *working-dir
|
||||
steps:
|
||||
- *get-code
|
||||
- checkout
|
||||
- *install-node
|
||||
- *install-task-binary
|
||||
- run: task deps:integration
|
||||
@ -145,7 +145,7 @@ jobs:
|
||||
- *install-task-binary
|
||||
# Needed only in ci to post coverage reports
|
||||
- run: go get github.com/schrej/godacov
|
||||
- *get-code
|
||||
- checkout
|
||||
- *load-go-cache
|
||||
- run: task deps:tools
|
||||
- run: task deps:be
|
||||
@ -161,7 +161,7 @@ jobs:
|
||||
test:integration:
|
||||
machine: true
|
||||
steps:
|
||||
- *get-code
|
||||
- checkout
|
||||
- *install-task-binary
|
||||
- run: context=ci task dc:up
|
||||
|
||||
@ -189,7 +189,7 @@ jobs:
|
||||
- *golang-image
|
||||
steps:
|
||||
- *install-task-binary
|
||||
- *get-code
|
||||
- checkout
|
||||
- setup_remote_docker
|
||||
- run: context=prod task docker:test
|
||||
|
||||
@ -198,7 +198,7 @@ jobs:
|
||||
- *golang-image
|
||||
steps:
|
||||
- *install-task-binary
|
||||
- *get-code
|
||||
- checkout
|
||||
- setup_remote_docker
|
||||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
- run: context=prod tag=develop task docker:build
|
||||
@ -209,7 +209,7 @@ jobs:
|
||||
- *golang-image
|
||||
steps:
|
||||
- *install-task-binary
|
||||
- *get-code
|
||||
- checkout
|
||||
- setup_remote_docker
|
||||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
- run: context=prod tag=latest task docker:build
|
||||
@ -229,7 +229,7 @@ jobs:
|
||||
- *install-node
|
||||
- *install-task-binary
|
||||
- run: sudo apt-get install rpm
|
||||
- *get-code
|
||||
- checkout
|
||||
- *load-go-cache
|
||||
- *load-npm-cache
|
||||
- run: task deps
|
||||
|
Loading…
Reference in New Issue
Block a user