Skip to content

Commit 457e7d6

Browse files
author
Ian Campbell
committed
Workspace binaries in Linux subdir
Signed-off-by: Ian Campbell <[email protected]>
1 parent 1e91ab4 commit 457e7d6

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.circleci/config.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linuxkit_pkg_build: &linuxkit_pkg_build
44
steps:
55
- run:
66
name: Configure $PATH
7-
command: echo 'export PATH=/workspace/bin:$PATH' >> $BASH_ENV
7+
command: echo 'export PATH=/workspace/bin-Linux:$PATH' >> $BASH_ENV
88
- run:
99
name: Install packages
1010
# ca-certificates are needed for attach_workspace (and git over https)
@@ -38,7 +38,7 @@ image_build: &image_build
3838
steps:
3939
- run:
4040
name: Configure $PATH
41-
command: echo 'export PATH=/workspace/bin:$PATH' >> $BASH_ENV
41+
command: echo 'export PATH=/workspace/bin-Linux:$PATH' >> $BASH_ENV
4242
- run:
4343
name: Install packages
4444
# ca-certificates are needed for attach_workspace (and git over https)
@@ -96,7 +96,7 @@ image_boot: &image_boot
9696
steps:
9797
- run:
9898
name: Configure $PATH
99-
command: echo 'export PATH=~/workspace/bin:$PATH' >> $BASH_ENV
99+
command: echo 'export PATH=~/workspace/bin-Linux:$PATH' >> $BASH_ENV
100100
- run:
101101
name: Install packages
102102
# ca-certificates are needed for attach_workspace (and git over https)
@@ -152,29 +152,29 @@ jobs:
152152
steps:
153153
- run:
154154
name: Create workspace
155-
command: mkdir -p /workspace/bin
155+
command: mkdir -p /workspace/bin-Linux
156156
- run:
157157
name: Install packages
158158
command: apt-get update && apt-get install -y ca-certificates curl openssh-client
159159
- run:
160160
name: Fetch binaries
161161
command: |
162162
curl -fsSL -o /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.06.2-ce.tgz
163-
tar xfO /tmp/docker.tgz docker/docker > /workspace/bin/docker
164-
curl -fsSL -o /workspace/bin/linuxkit https://362-46932243-gh.circle-artifacts.com/0/linuxkit-linux-amd64
165-
curl -fsSL -o /workspace/bin/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.7.0/manifest-tool-linux-amd64
166-
curl -fsSL -o /workspace/bin/notary https://github.com/theupdateframework/notary/releases/download/v0.4.3/notary-Linux-amd64
163+
tar xfO /tmp/docker.tgz docker/docker > /workspace/bin-Linux/docker
164+
curl -fsSL -o /workspace/bin-Linux/linuxkit https://362-46932243-gh.circle-artifacts.com/0/linuxkit-linux-amd64
165+
curl -fsSL -o /workspace/bin-Linux/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.7.0/manifest-tool-linux-amd64
166+
curl -fsSL -o /workspace/bin-Linux/notary https://github.com/theupdateframework/notary/releases/download/v0.4.3/notary-Linux-amd64
167167
168168
echo "Downloaded:"
169-
sha256sum /workspace/bin/*
169+
sha256sum /workspace/bin-Linux/*
170170
echo
171171
172172
echo "Checking checksums"
173173
sha256sum -c <<EOF
174-
6af40e74b2dbb2927882acab52d50bfc72551779d541957fc70b6adc325ee5ef /workspace/bin/docker
175-
b61188823c2491e9a1c16d275e41c68d5736f3f10577d01cb358261ff71bbad6 /workspace/bin/linuxkit
176-
e4ca2ef0015a4be8597d31d9e3e70d88da33924ae72b0999e9f3b79304d4710d /workspace/bin/manifest-tool
177-
06cd02c4c2e7a3b1ad9899b03b3d4dde5392d964c675247d32f604a24661f839 /workspace/bin/notary
174+
6af40e74b2dbb2927882acab52d50bfc72551779d541957fc70b6adc325ee5ef /workspace/bin-Linux/docker
175+
b61188823c2491e9a1c16d275e41c68d5736f3f10577d01cb358261ff71bbad6 /workspace/bin-Linux/linuxkit
176+
e4ca2ef0015a4be8597d31d9e3e70d88da33924ae72b0999e9f3b79304d4710d /workspace/bin-Linux/manifest-tool
177+
06cd02c4c2e7a3b1ad9899b03b3d4dde5392d964c675247d32f604a24661f839 /workspace/bin-Linux/notary
178178
EOF
179179
- run:
180180
name: Generate SSH Keys
@@ -184,10 +184,10 @@ jobs:
184184
- run:
185185
name: Versions
186186
command: |
187-
chmod +x /workspace/bin/docker # docker version deferred until daemon configured in relevant jobs
188-
chmod +x /workspace/bin/linuxkit && /workspace/bin/linuxkit version
189-
chmod +x /workspace/bin/manifest-tool && /workspace/bin/manifest-tool --version
190-
chmod +x /workspace/bin/notary && /workspace/bin/notary version
187+
chmod +x /workspace/bin-Linux/docker # docker version deferred until daemon configured in relevant jobs
188+
chmod +x /workspace/bin-Linux/linuxkit && /workspace/bin-Linux/linuxkit version
189+
chmod +x /workspace/bin-Linux/manifest-tool && /workspace/bin-Linux/manifest-tool --version
190+
chmod +x /workspace/bin-Linux/notary && /workspace/bin-Linux/notary version
191191
- persist_to_workspace:
192192
root: /workspace
193193
paths: bin
@@ -201,7 +201,7 @@ jobs:
201201
steps:
202202
- run:
203203
name: Configure $PATH
204-
command: echo 'export PATH=/workspace/bin:$PATH' >> $BASH_ENV
204+
command: echo 'export PATH=/workspace/bin-Linux:$PATH' >> $BASH_ENV
205205
- run:
206206
name: Install packages
207207
# ca-certificates are needed for attach_workspace (and git over https)
@@ -325,7 +325,7 @@ jobs:
325325
steps:
326326
- run:
327327
name: Configure $PATH
328-
command: echo 'export PATH=/workspace/bin:$PATH' >> $BASH_ENV
328+
command: echo 'export PATH=/workspace/bin-Linux:$PATH' >> $BASH_ENV
329329
- run:
330330
name: Install packages
331331
# ca-certificates are needed for attach_workspace (and git over https)

0 commit comments

Comments
 (0)