Skip to content

Commit fe26fed

Browse files
committed
Add docker login step to CI
1 parent 5bc9ce9 commit fe26fed

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.semaphore/semaphore.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ blocks:
3838
agent:
3939
machine:
4040
type: s1-prod-ubuntu20-04-amd64-2
41+
prologue:
42+
commands:
43+
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
4144
jobs:
4245
- name: "Build from source and test for musl"
4346
commands:
@@ -49,6 +52,9 @@ blocks:
4952
agent:
5053
machine:
5154
type: s1-prod-ubuntu20-04-arm64-1
55+
prologue:
56+
commands:
57+
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
5258
jobs:
5359
- name: "Build from source and test for musl"
5460
commands:
@@ -110,6 +116,9 @@ blocks:
110116
value: "linux"
111117
- name: LIBC
112118
value: "glibc"
119+
prologue:
120+
commands:
121+
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
113122
jobs:
114123
- name: "Release: LTS:18"
115124
commands:
@@ -154,6 +163,9 @@ blocks:
154163
value: "linux"
155164
- name: LIBC
156165
value: "glibc"
166+
prologue:
167+
commands:
168+
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
157169
jobs:
158170
- name: "Release: LTS:18"
159171
commands:
@@ -198,6 +210,9 @@ blocks:
198210
value: "linux"
199211
- name: LIBC
200212
value: "musl"
213+
prologue:
214+
commands:
215+
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
201216
jobs:
202217
- name: "Release: LTS:18"
203218
commands:
@@ -236,6 +251,9 @@ blocks:
236251
value: "linux"
237252
- name: LIBC
238253
value: "musl"
254+
prologue:
255+
commands:
256+
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
239257
jobs:
240258
- name: "Release: LTS:18"
241259
commands:

0 commit comments

Comments
 (0)