File tree Expand file tree Collapse file tree 2 files changed +15
-28
lines changed
Expand file tree Collapse file tree 2 files changed +15
-28
lines changed Original file line number Diff line number Diff line change 55 type : e1-standard-2
66 os_image : ubuntu1804
77blocks :
8-
98 - name : semantic-release
109 task :
1110 secrets :
1211 - name : semantic-release
1312 - name : docker-hub
13+ - name : ms-phone
1414 prologue :
1515 commands :
1616 - sudo chmod -R 0777 /etc/docker
17- - echo '{"experimental":true}' > /etc/docker/daemon.json
17+ - ' echo '' {"experimental":true}'' > /etc/docker/daemon.json'
1818 - sudo service docker restart
1919 - sem-version node 10.15.3
2020 - checkout
2121 - cache restore node-modules-$(checksum yarn.lock)
2222 - echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin
2323 jobs :
24- - name : yarn semantic-release
25- commands :
26- - yarn semantic-release
24+ - name : yarn semantic-release
25+ commands :
26+ - yarn semantic-release
Original file line number Diff line number Diff line change 1- # ## TODO: ignore gh_pages
21version : v1.0
32name : ms-phone
43agent :
54 machine :
65 type : e1-standard-2
76 os_image : ubuntu1804
87blocks :
9-
108 - name : Install dependencies
119 task :
1210 prologue :
@@ -15,31 +13,20 @@ blocks:
1513 - checkout
1614 - cache restore node-modules-$(checksum yarn.lock)
1715 jobs :
18- - name : yarn install
19- commands :
20- - yarn install --frozen-lockfile
21- - cache store node-modules-$(checksum yarn.lock) node_modules
22-
23- # - name: Run tests
24- # task:
25- # secrets:
26- # - name: ms-phone
27- # prologue:
28- # commands:
29- # - sem-version node 10.15.3
30- # - cache store env-$SEMAPHORE_JOB_ID test/.env
31- # - checkout
32- # - cache restore env-$SEMAPHORE_JOB_ID
33- # - cache restore node-modules-$(checksum yarn.lock)
34- # jobs:
35- # - name: yarn test
36- # commands:
37- # - yarn test
38-
16+ - name : yarn install
17+ commands :
18+ - yarn install --frozen-lockfile
19+ - cache store node-modules-$(checksum yarn.lock) node_modules
20+ secrets :
21+ - name : ms-phone
22+ - name : docker-hub
23+ - name : semantic-release
3924promotions :
4025 - name : Publish image
4126 pipeline_file : build.yml
4227 auto_promote_on :
4328 - result : passed
4429 branch :
4530 - ^master$
31+ auto_promote :
32+ when : branch = 'master' AND result = 'passed'
You can’t perform that action at this time.
0 commit comments