Skip to content

Commit fee05e9

Browse files
committed
fix: update semaphore workflow
1 parent 3da8d83 commit fee05e9

File tree

2 files changed

+15
-28
lines changed

2 files changed

+15
-28
lines changed

.semaphore/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ agent:
55
type: e1-standard-2
66
os_image: ubuntu1804
77
blocks:
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

.semaphore/semaphore.yml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
### TODO: ignore gh_pages
21
version: v1.0
32
name: ms-phone
43
agent:
54
machine:
65
type: e1-standard-2
76
os_image: ubuntu1804
87
blocks:
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
3924
promotions:
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'

0 commit comments

Comments
 (0)